How to kill all zombie process in a Linux server
We can't just kill a zombie process because they are already dead processes. Inorder to remove them from the ps list, you need to kill its parent process. You can use the following command to kill the parent process of zombie processes.
kill -9 $(ps -A -ostat,ppid | grep -e '[zZ]'| awk '{ print $2 }')
Comments
Post a Comment