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


Share this ajax content

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: 2031.



 
Rating
  • Currently 3.07/5
  • 1
  • 2
  • 3
  • 4
  • 5

Rating: 3.1 (total votes for this content: 459)

 
Write Review

Footer

| Stats