Kill Java Process – ‘kill java’ Command Not Working

killprocess-management

I am running debian right now and sometimes I need to kill java manually from the terminal, but when I try kill #pid# or pkill java nothing happens. No console output (ok, that's normal) and java is still running (not normal). The only way to kill it is to restart the PC.
Any suggestions?

Best Answer

Maybe its ignoring the signal for some reason. Did you try kill -9?

But please note: kill -9 cannot be ignored or trapped. If a process sees signal 9, it has no choice but to die. It can't do anything else - not even gracefully clean up its files.

Related Question