
25th November 2005, 12:49
|
|
Senior Member
|
|
Join Date: Sep 2005
Posts: 840
Thanks: 15
Thanked 2 Times in 2 Posts
|
|
what to do about zombie processes ?
top shows I have 2 of them,
what can I do to detect and kill them?
|

4th December 2005, 21:43
|
|
Senior Member
|
|
Join Date: Oct 2005
Location: Texas, USA
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
|
Originally Posted by Tenaka
top shows I have 2 of them,
what can I do to detect and kill them?
|
If you are looking at top, the first column is the PID (Process ID). Quit out of top, and then you can execute the command:
# kill <PID>
The default kill signal is SIGTERM (15) which will attempt to kill the process cleanly. If it still failes to die off you can issue a SIGKILL(9) to trash the process and really kill it (uncleanly).
# kill -9 <PID>
__________________
themachine
5dollarwhitebox.org
|

4th December 2005, 23:51
|
|
Senior Member
|
|
Join Date: Sep 2005
Posts: 840
Thanks: 15
Thanked 2 Times in 2 Posts
|
|
I did not phrase my question good enough: top tells me I have 1 zombie process, I know how to kill it but how do I know which process is the zombie one?
|

5th December 2005, 03:20
|
|
Senior Member
|
|
Join Date: Oct 2005
Location: Texas, USA
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
|
Originally Posted by Tenaka
I did not phrase my question good enough: top tells me I have 1 zombie process, I know how to kill it but how do I know which process is the zombie one?
|
Who is the user running the zombie process? You can also look at:
# ps -auwx | grep <pid>
and perhaps you'll get more info from that output.
__________________
themachine
5dollarwhitebox.org
|

5th December 2005, 11:05
|
|
Senior Member
|
|
Join Date: Sep 2005
Posts: 840
Thanks: 15
Thanked 2 Times in 2 Posts
|
|
still you did not get my question:
tu run: # ps -auwx | grep <pid>
I need to know the pid of the zombie process but all I know is that when I open top I see in the report on top: 1 zombie process I do not know which one is the zombie process, so I can't know its Pid :-)
|

6th December 2005, 07:55
|
|
Senior Member
|
|
Join Date: Oct 2005
Location: Texas, USA
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I see now... why not try:
# ps auxw | grep -i "zombie"
Maybe that will do?
__________________
themachine
5dollarwhitebox.org
|

7th December 2005, 16:59
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,853
Thanks: 781
Thanked 1,558 Times in 1,477 Posts
|
|
Sometimes zombie processes have the string <defunct> at the end in the output of top. Maybe that helps.
|

16th December 2005, 20:51
|
|
Member
|
|
Join Date: Dec 2005
Location: Washington, DC
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Are you refering to a zombie process as a process or thread that has reached deadlock. ie no longer responding? If this is the case then their is no easy way to tell which process is causing the problem. Mostly it is trial and error. This is also extreamly dangerious to do. If you have a production environment and need a way to recover from deadlock there are a few solutions out available. Only problem is that deadlock solutions provide an a extreamly large amount of over head.
Thus, solution is:
personal or development comptuer - restart. If you need to track it you can also check your error logs
development server - look into deadlock software solutions.
|

16th May 2007, 02:04
|
|
Junior Member
|
|
Join Date: May 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
displaying zombie processes
Use this command to display all of your zombie processes:
ps aux | awk '{ print $8 " " $2 }' | grep -w Z
|

6th September 2007, 23:59
|
|
Moderator
|
|
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 1,987
Thanks: 123
Thanked 542 Times in 240 Posts
|
|
Displaying Zombie processes
Have a look here to sse how to display zombies: http://www.debian-administration.org/articles/261
But killing them is not possible as the zombies are dead already.
Last edited by Hans; 7th September 2007 at 00:07.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
|
Problem with instalation
|
indicator72 |
Installation/Configuration |
38 |
16th November 2005 12:39 |
All times are GMT +2. The time now is 22:28.
|
Recent comments
13 hours 56 min ago
19 hours 12 min ago
19 hours 23 min ago
19 hours 31 min ago
20 hours 33 min ago
22 hours 40 min ago
1 day 1 hour ago
1 day 1 hour ago
1 day 1 hour ago
1 day 2 hours ago