Killing a zombie process
On unix-based systems, a zombie process or defunct process is a process that has completed execution but still has an entry in the process table. You can read more about it on wikipedia.
# ps aux | awk '{ print " " }' | grep -w Z
This will give you an output similar to the one below:
Z 8954
In order to kill it, you will have to find the parent process.
root 8954 5265 0 07:19 ? 00:00:00 rpcss <defunct>
The process that needs to be killed is the parent process - which is 5265. Killing it with
kill -9 5265
will get rid of the parent and the zombie process.This is not recommended - the best way to get rid of zombie processes is to reboot the system.
Last Updated on Tuesday, 19 May 2009 14:04
Comments (1)
Add your comment
yvComment v.1.24.0
These kind of entries appears when the parent process behaves badly. Killing it is probably the right thing to do, but you should first understand the purpose of the process you want to kill.
Rebooting the system is a poor advice.