views:

51

answers:

1

I'm facing a situation where one of my java VMs is being killed by some other process and the java VM exits with an exit status of 143. Is there any way I can find the process which killed my program?
I read about Runtime.addShutdownHook but I found it of no use. Though I can find when my process is being killed, I can't find who's killing it.
What I need is a Holmes to find the killer.
I'm using Sun JDK and the acommpanying JRE btw.

+2  A: 

if you're using linux, check your logs to see if the kernel is killing children again. OOM killer..

jwp