Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 10-18-2007, 08:21 AM   #1
Registered: Feb 2007
Posts: 197

Rep: Reputation: 30
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.
Old 10-18-2007, 08:28 AM   #2
LQ Newbie
Registered: Oct 2007
Distribution: Red Hat ES 4
Posts: 10

Rep: Reputation: 0
Use kill -9 PID, or kill -KILL PID. Hope this helps.
Old 10-19-2007, 09:58 AM   #3
Registered: Dec 2004
Distribution: RHEL, CentOS, SuSE
Posts: 170

Rep: Reputation: 31
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.
Old 10-20-2007, 06:53 AM   #4
Registered: Feb 2007
Posts: 197

Original Poster
Rep: Reputation: 30
Thank you, how do I find the parent process of the zombie process?
Old 10-24-2007, 01:33 PM   #5
Registered: Dec 2004
Distribution: RHEL, CentOS, SuSE
Posts: 170

Rep: Reputation: 31
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.

[username@satellite ~]$ ps -ef|head
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]
Old 10-25-2007, 09:21 PM   #6
Registered: Apr 2007
Location: Sydney
Distribution: Debian. (Formerly Slackware, Gentoo, RHEL, and Suse)
Posts: 80

Rep: Reputation: 15
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Zombie Process N|k0N Linux - Security 8 09-22-2007 02:01 AM
Zombie processs how do you kill them? edouglas Linux - Newbie 1 03-04-2007 12:13 AM
Wine zombie processes completely kill sound Haiyadragon Linux - Software 4 01-01-2006 03:44 PM
Zombie process - gnomerc Artik Mandriva 0 05-10-2005 01:45 AM
zombie process ihatecomputers Linux - Software 2 03-24-2005 07:09 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:26 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration