Saturday 8 September 2012

Killing Zombie Processes on Linux

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 

If PPID is not 1 then you are lucky.

You can kill parent process by running following command:

kill -9 2755

Thats it!

 

 

-- This Post Killing Zombie Processes on Linux is Published on Devils Workshop .


Related posts:





ifttt
Put the internet to work for you. via Personal Recipe 796541

No comments:

Post a Comment