26 Haziran 2018 Salı

Zombie Process

Giriş
Eğer sistemde bir kaç tane zombie process varsa genelde çok bir sorun teşkil etmez. Eğer zombie process sayısı sürekli artıyorsa PID numaraları biteceği için sorun olabilir.

Zombie Process'ten Kurtulmak
Açıklaması şöyle
One way to kill zombie is by sending the SIGCHLD signal to the parent process. This signal tells the parent process to execute the wait() system call and clean up its zombie children.
Parent process's şu komutu göndeririz.
kill -s SIGCHLD pid
Zombie Process Nasıl Bulunur?
top komutu kullanılabilir. S sütununda - Status sütunu anlamına gelir - bazı harfler görünür. Bir harf Z ise Zombie anlamına gelir. Harfle şöyle
Process status is reported with a single character:

R — RUNNING/RUNNABLE
S — INTERRUPTABLE_SLEEP
D — UNINTERRUPTABLE_SLEEP
T — STOPPED
Z — ZOMBIE

Hiç yorum yok:

Yorum Gönder