|
|
How to kill a Zombie?
It happend to me that a App (owned by root) stopped in Zombie mode (Process Viewer sad so).
In the Terminal I tried kill PID_of_Zombie_App but OS X complained that it didn't found the PID, I even tried it with sudo. But no chance, I had to restart :-( my system to get ride of the Zombie.
How to kill a Zombie?
My understanding is that a zombie is like a child process... it's spawned by another running process. I might very well be wrong, though...
How to kill a Zombie?
Zombies are generally caused by bad programming :)
How to kill a Zombie?
I forget the exact definition at the moment, but basically a zombie process is one that is stuck in a situation where it is waiting for some kind of system event or input. So for example if you have a login shell and kill the window, maybe your shell process could end up being a zombie if it's waiting for user input that will never come.
How to kill a Zombie?
This page gives an explanation of a zombie process.
In a nutshell, a zombie is a child process whose parent hasn't come along to pick up its exit code. The zombie only consumes an entry in the process table; it doesn't use up any memory or other system resources and does not use any CPU. When the parent exits, the zombies should go away as well, but if not, a reboot is the only way to clean them up.
The previous posters are correct that zombies are caused by poor programming, but to say the processes are waiting on an event is not quite right.
How to kill a Zombie?
I don't have a zombie process to try this on. But... here's the deal. Kill has several flags you can use. I just explained this earlier, but just in case... The most commonly useful of these are like so:
kill -HUP # Used to hangup. Does not necessarily stop the program from # running. Very useful to tell a daemon process to look at # it's config file again. kill # No flags. Just tells it to clean up it's stuff and leave. # Analogous to an eviction notice. kill -KILL # Tells the system to actively kill it, not just politely # tell it to leave. Analogous to the eviction notice above, # combined with "... and I'll be back in a minute with my # shotgun so you better be gone!" kill 1 # Go into single user mode without rebooting. The system # should start up again right after you type exit in # the shell. Basically keeps the system stuff intact while # cleaning house on all user processes. Should disable # networking as well but I haven't checked. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.10 seconds |
|