LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 10-18-2007, 09:21 AM   #1
mokku
Member
 
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, 09:28 AM   #2
LoneGunman
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, 10:58 AM   #3
XaViaR
Member
 
Registered: Dec 2004
Distribution: RHEL, CentOS, SuSE
Posts: 170

Rep: Reputation: 30
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, 07:53 AM   #4
mokku
Member
 
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, 02:33 PM   #5
XaViaR
Member
 
Registered: Dec 2004
Distribution: RHEL, CentOS, SuSE
Posts: 170

Rep: Reputation: 30
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]
 
Old 10-25-2007, 10:21 PM   #6
TheLateJC
Member
 
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.
 
  


Reply


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 03:01 AM
Zombie processs how do you kill them? edouglas Linux - Newbie 1 03-04-2007 01:13 AM
Wine zombie processes completely kill sound Haiyadragon Linux - Software 4 01-01-2006 04:44 PM
Zombie process - gnomerc Artik Mandriva 0 05-10-2005 02:45 AM
zombie process ihatecomputers Linux - Software 2 03-24-2005 08:09 AM


All times are GMT -5. The time now is 02:16 AM.

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