2

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.

Jagat
  • 1,392
  • 2
  • 15
  • 25

2 Answers2

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.

Finding which process was killed by Linux OOM killer

Who "Killed" my process and why?

Community
  • 1
  • 1
km1
  • 2,383
  • 1
  • 22
  • 27