Assalamualaikum wr wb
mau bahas2 proses zombie nih
tentang zombie process
A process is called a zombie process if the process has been completed, but its PID and process entry remains in the Linux process table. A process is removed from the process table when the process is completed, and its parent process reads the completed process' exit status by using the wait() system call. If a parent process fails to call wait() for whatever reason, its child process will be left in the process table, becoming a zombie.
sampel hasil top command
top - 19
59 up 109 days, 5:17, 2 users, load average: 61.48, 42.81, 31.22
Tasks: 447 total, 1 running, 380 sleeping, 2 stopped, 64 zombie
kalau kita search misalnya
# ps axo stat,ppid,pid,comm | grep -w defunct
hasilnya begini
root@server [~]# ps axo stat,ppid,pid,comm | grep -w defunct
Z 511110 512012 php <defunct>
Z 514513 517523 php <defunct>
Z 509246 517581 php <defunct>
Z 517611 517613 php <defunct>
Z 517608 517614 php <defunct>
Z 512445 517690 php <defunct>
Z 517670 517792 php <defunct>
Z 517664 517809 php <defunct>
Z 517666 517845 php <defunct>
Z 512376 518159 php <defunct>
Z 509244 518217 php <defunct>
Z 509228 518226 php <defunct>
Z 504080 518449 php <defunct>
Z 511143 518557 php <defunct>
Z 517610 518698 php <defunct>
Z 517665 518893 php <defunct>
Z 517655 519017 php <defunct>
Z 509226 519457 php <defunct>
Z 517662 519499 php <defunct>
Z 517659 519502 php <defunct>
Z 519040 519641 php <defunct>
Z 517606 519953 php <defunct>
Z 514678 519986 php <defunct>
Z 510944 520277 php <defunct>
Z 520023 520391 php <defunct>
Z 511131 520406 php <defunct>
Z 511077 520409 php <defunct>
Z 520490 520500 php <defunct>
Z 517661 520506 php <defunct>
Z 510998 520878 php <defunct>
Z 517671 520935 php <defunct>
Z 508972 521011 php <defunct>
Z 520022 521067 php <defunct>
kalau kita buat script bash untuk kill itu apa gak apa apa kah??
mau bahas2 proses zombie nih
tentang zombie process
A process is called a zombie process if the process has been completed, but its PID and process entry remains in the Linux process table. A process is removed from the process table when the process is completed, and its parent process reads the completed process' exit status by using the wait() system call. If a parent process fails to call wait() for whatever reason, its child process will be left in the process table, becoming a zombie.
sampel hasil top command
top - 19

Tasks: 447 total, 1 running, 380 sleeping, 2 stopped, 64 zombie
kalau kita search misalnya
# ps axo stat,ppid,pid,comm | grep -w defunct
hasilnya begini
root@server [~]# ps axo stat,ppid,pid,comm | grep -w defunct
Z 511110 512012 php <defunct>
Z 514513 517523 php <defunct>
Z 509246 517581 php <defunct>
Z 517611 517613 php <defunct>
Z 517608 517614 php <defunct>
Z 512445 517690 php <defunct>
Z 517670 517792 php <defunct>
Z 517664 517809 php <defunct>
Z 517666 517845 php <defunct>
Z 512376 518159 php <defunct>
Z 509244 518217 php <defunct>
Z 509228 518226 php <defunct>
Z 504080 518449 php <defunct>
Z 511143 518557 php <defunct>
Z 517610 518698 php <defunct>
Z 517665 518893 php <defunct>
Z 517655 519017 php <defunct>
Z 509226 519457 php <defunct>
Z 517662 519499 php <defunct>
Z 517659 519502 php <defunct>
Z 519040 519641 php <defunct>
Z 517606 519953 php <defunct>
Z 514678 519986 php <defunct>
Z 510944 520277 php <defunct>
Z 520023 520391 php <defunct>
Z 511131 520406 php <defunct>
Z 511077 520409 php <defunct>
Z 520490 520500 php <defunct>
Z 517661 520506 php <defunct>
Z 510998 520878 php <defunct>
Z 517671 520935 php <defunct>
Z 508972 521011 php <defunct>
Z 520022 521067 php <defunct>
kalau kita buat script bash untuk kill itu apa gak apa apa kah??