The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
zombie process jeenat Linux 5 03-28-2008 07:36 AM
how to handle a zombie process mridula High Level Programming 1 12-06-2005 05:47 PM
zombie daemon process!! rish2005 UNIX for Advanced & Expert Users 1 11-25-2005 09:59 AM
Zombie process swhitney UNIX for Advanced & Expert Users 2 10-22-2004 05:12 PM
Zombie process orca UNIX for Dummies Questions & Answers 8 04-26-2002 02:54 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-21-2008
pikecoguy pikecoguy is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 2
Cool Re: How do I recognize a zombie process?

Hey Guys,

I am not really new to Unix/Linux however I was never taught how to spot a zombie process. I used top to check out the processes I was running and how the resources were looking and in the upper right it said 1 zombie, I have attached a jpeg of it. Thank you in advance for your help.

Michael
Attached Thumbnails
re-how-do-i-recognize-zombie-process-zombie1.jpg  
  #2 (permalink)  
Old 08-21-2008
SebaM6 SebaM6 is offline
Registered User
  
 

Join Date: Nov 2007
Posts: 34
Example:
root 6365 6353 0 0:00 <defunct>
  #3 (permalink)  
Old 08-21-2008
buffoonix buffoonix is offline
Registered User
  
 

Join Date: Mar 2006
Posts: 145
Most ps implementations show it as <defunct>.
So you could simply
Code:
$ ps -ef | grep defunct
With Linux ps you can also go after the state like such, provided there are any zombies
which well behaved programs simply don't produce
Code:
$ ps -e -o pid= -o state=|awk '$2=="Z"{print$1}'|tr \\040 ,|xargs ps -fp
  #4 (permalink)  
Old 08-22-2008
pikecoguy pikecoguy is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 2
Thumbs up

Quote:
Originally Posted by buffoonix View Post
Most ps implementations show it as <defunct>.
So you could simply
Code:
$ ps -ef | grep defunct
With Linux ps you can also go after the state like such, provided there are any zombies
which well behaved programs simply don't produce
Code:
$ ps -e -o pid= -o state=|awk '$2=="Z"{print$1}'|tr \\040 ,|xargs ps -fp
Thank you very much that helps a ton I will use these and see what I come up with.

Michael
  #5 (permalink)  
Old 08-23-2008
sad_angle's Avatar
sad_angle sad_angle is offline
Registered User
  
 

Join Date: Jun 2001
Location: Madison, WI
Posts: 75
get the proccess id, then pkill it

$ ps aux | awk '$8=="Z" { print $2 }'

Good luck
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:05 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0