HOW TO KILL ZOMBIE PROCESS


Bagaimana cara meng-kill zombie process?

Zombie process tidak dapat dikill , karena mereka sendiri sudah mati (dead). tetapi  jika sudah kebayakan zombi prosess maka dapat di kill parent proses atau merestart servicenya.

 

Bagaimana caranya melihat zombie process?

ps aux | awk ‘{ print $8 “” $2}’ | grep -w Z

ps -el | grep Z

kill -9 PID

Walapun menggunakan kill -9 untuk membunuh zombi namun tidak menjamin akan mati.

Bagaimana caranya membunuh zombi proses secara otomatis

Tulis script berikut di cron job:
`ps jauxww | grep Z | grep -v PID | awk ‘{print $3}’`; do for every in `ps auxw | grep $each | grep cron | awk ‘{print $2}’`; do kill -9 $every; done; done

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

shisdew

Listens until think alike

moses.spaceku@yahoo.com / voip ipbx

Hosted PBX, IP-PBX SOHO/ CALL CENTER, VOICE GATEWAY, VOICE CARD, COST EFECTIVE SOLUTIONS (LCR), GSM/CDMA GATEWAY

%d bloggers like this: