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.
Asked
Active
Viewed 1,178 times
2

Jagat
- 1,392
- 2
- 15
- 25
2 Answers
3
if you're using linux, check your logs to see if the kernel is killing children again. OOM killer..

jwp
- 407
- 3
- 10
1
I know this has been here for a while but in case others are looking for a solution. To expand on Jw's answer. Check the /var/log/kern.log
, /var/log/messages
, or /var/log/syslog
files.
More info about processes being killed can be found in the following threads.