LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   how to kill zombie process (https://www.linuxquestions.org/questions/linux-server-73/how-to-kill-zombie-process-592732/)

mokku 10-18-2007 08:21 AM

how to kill zombie process
 
HI Guys,

How do we kill all the zombie process? Also, how do we check if any process go to hung status?

thanks in advance.

LoneGunman 10-18-2007 08:28 AM

Use kill -9 PID, or kill -KILL PID. Hope this helps.

XaViaR 10-19-2007 09:58 AM

I don't believe you can kill zombie process with `kill -9 <pid>`. Zombie process are considered dead. And, you will have to kill the parent process of the zombie process to kill the zombie.

mokku 10-20-2007 06:53 AM

Thank you, how do I find the parent process of the zombie process?

XaViaR 10-24-2007 01:33 PM

To find out the parent processes' pid look at the PPID column below. For instance, [khelper] has a process id of 8 and it's parent PPID is 6 or [events/0].

I hope this helps.

Code:

[username@satellite ~]$ ps -ef|head
UID        PID  PPID  C STIME TTY          TIME CMD
root        1    0  0 Oct02 ?        00:03:51 init [3]                           
root        2    1  0 Oct02 ?        00:00:01 [migration/0]
root        3    1  0 Oct02 ?        00:00:00 [ksoftirqd/0]
root        4    1  0 Oct02 ?        00:00:03 [migration/1]
root        5    1  0 Oct02 ?        00:00:00 [ksoftirqd/1]
root        6    1  0 Oct02 ?        00:00:07 [events/0]
root        7    1  0 Oct02 ?        00:00:08 [events/1]
root        8    6  0 Oct02 ?        00:00:00 [khelper]
root        9    6  0 Oct02 ?        00:00:00 [kacpid]


TheLateJC 10-25-2007 09:21 PM

You are might be stuck with them until you restart the machine.

I've had some experience of zombie processes being created by Java based reporting application. On a certain version of Java shutting the app down would create zombie processes. I'm pretty sure that the process was actually gone, and all that remained was an entry in the process table.

It looked bad at first, but really it was a non issue.


All times are GMT -5. The time now is 07:38 AM.