Top Menu

ajax scripts script web 2.0 dhtml javascript

Main Menu

Menu

Scripts

 
Category: Server Security /  How To Solve Defunct Processes (Zombie)

How I killed defunct processes with simple codes




if you say that;

When I ps -ef on my server with ssh, I see about 3 or 4 <DEFUNCT> processes

How can you fix them?

login your server with ssh and command;

$crontab -e

than , copy codes i give below;

*/1 * * * * ps | grep defunct | cut -d -f 1
*/1 * * * * sleep 3; ps | grep defunct | cut -d -f 1
*/1 * * * * sleep 6; ps | grep defunct | cut -d -f 1
*/1 * * * * sleep 9; ps | grep defunct | cut -d -f 1
*/1 * * * * sleep 12; ps | grep defunct | cut -d -f 1
*/1 * * * * sleep 15; ps | grep defunct | cut -d -f 1
*/1 * * * * sleep 18; ps | grep defunct | cut -d -f 1
*/1 * * * * sleep 21; ps | grep defunct | cut -d -f 1
*/1 * * * * sleep 24; ps | grep defunct | cut -d -f 1
*/1 * * * * sleep 27; ps | grep defunct | cut -d -f 1
*/1 * * * * sleep 30; ps | grep defunct | cut -d -f 1
*/1 * * * * sleep 33; ps | grep defunct | cut -d -f 1
*/1 * * * * sleep 36; ps | grep defunct | cut -d -f 1
*/1 * * * * sleep 39; ps | grep defunct | cut -d -f 1
*/1 * * * * sleep 42; ps | grep defunct | cut -d -f 1
*/1 * * * * sleep 45; ps | grep defunct | cut -d -f 1
*/1 * * * * sleep 48; ps | grep defunct | cut -d -f 1
*/1 * * * * sleep 51; ps | grep defunct | cut -d -f 1
*/1 * * * * sleep 54; ps | grep defunct | cut -d -f 1
*/1 * * * * sleep 57; ps | grep defunct | cut -d -f 1

and, save it

$ctrl+x

thats ok,


Hit: 5786.



 
Write Review

Footer