kill -3 <PID> ... where the output file goes?

Hi all,

I am generating the coredump of my JBoss, and by default it puts it in to a particular directory. i.e. JBOSS_HOME/. I would like this output file to be created, lets say in /tmp/dump/.

I tried the following:

kill -3 9404940>/tmp/dump/out.txt

But it created /tmp/dump/out.txt with 0 KB, and yet it created the dump file in JBOSS_HOME/ directory.

Can you please let me know how can I have kill -3 to create the core dump file in the desired location?

Thanks,

You need to understand that "kill" doesn't create the dump. Kill sends a signal to Jboss ASKING it to dump. You redirected the output of "kill", but it's not "kill" that is going to do the work.

Thanks for prompt reply. I was kind of under that impression too, but wasn't sure. So, can you tell me where in JBoss, I can set this up so the created dump file goes to the desired location and not the default one?

Thanks in advance.

there are a few things you can do
Kill -6 will crate a coredump

kill -l will provide you with a full list of kill codes
in AIX you can now control where you want any core dumps to go
smitty corepath

You may also look in to some of the new ting in AIX like Pobevue or trace
:slight_smile: