You can’t kill zombie processes by sending them “kill -9” directly. Because zombies are already dead!
So its better to kill their “parent” process, unless inits init process.
Run following command…
ps -el | grep Z
Look for PPID
F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD 5 Z 0 2756 2755 0 80 0 - 0 exit ? 00:00:00 php-fpm <defunct>
If PPID is not 1 then you are lucky.
You can kill parent process by running following command:
kill -9 2755
Thats it!
2 Comments
You can also use the ‘ top ‘ command to check which processes are currently running.
and then you can use ‘ kill ‘ command to kill particular process.
‘top’ by default doesn’t list PPID.
Also as explained before you cannot kill zombies by just sending
kill -9
.