Senin, 30 Oktober 2017

Zombie Proses




Zombie Proses merupakan, proses anak yang sudah pergi tapi tidak pamit dengan Bapaknya. Sehingga masih dicariin.


Cek zombie proses :

ps aux | awk '{ print $8 " " $2 }' | grep -w Z

Untuk menghapus Zombie proses, maka bisa menggunakan perintah  ;


Kalau bandel tidak bisa di kill, bisa menggunakan  ;

kill $(ps -A -ostat,ppid | awk '/[zZ]/{print $2}')
atau

kill -9 $(ps -A -ostat,ppid | grep -e '[zZ]'| awk '{ print $2 }')

Bisa coba juga ;

ps aux | grep -w Z   # returns the zombies pid || membaca zombie proses
ps o ppid {returned pid from previous command}   # returns the parent
kill -1 {the parent id from previous command}
Bisa baca-baca ini ;

- https://efrizalzaida.wordpress.com/2013/06/03/membunuh-zombie-proses/
- https://blog.petrabarus.net/2008/08/zombie-process/
- http://opensource.telkomspeedy.com/forum/viewtopic.php?id=15051


EmoticonEmoticon