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?
|
|
||||
|
|
|
Maybe its ignoring the signal for some reason. Did you try But please note: |
||||
|
|
I occasionally have to kill -9. However, if this is happening regularly, you should fix the issue that is causing it. Kill -9 means something is way off. In general, I only see this happen when you get yourself into serious memory thrash mode, which means you either need more system memory, or you're giving java too much memory when you start. More commonly, though, especially if you're developing stuff, you can see this when you run out of "PermGen" memory. http://www.brokenbuild.com/blog/2006/08/04/java-jvm-gc-permgen-and-memory-options/ In any case, it may be due to OutOfMemory errors of some sort. |
|||||||
|
|
Read this, this and this . It will help you understand how kill command works. You can search for the java pid with:
Maybe you have zombie processes on the system, in that case read here |
||||
|
|
|
Try this:
|
||||
|

