Kill Zombie Process



 

1. Find The Zombie

root@dama-ceph-1:~# ps aux | grep Z
USER         PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
167        22995  0.0  0.0      0     0 ?        Z    13:53   0:00 [ssh] <defunct>
167        23778  0.0  0.0      0     0 ?        Z    13:53   0:00 [ssh] <defunct>
root       56035  0.0  0.0   7960  2672 pts/0    S+   23:09   0:00 grep --color=auto Z
2. Get the parent process
root@dama-ceph-1:~# pstree -p -s 22995
systemd(1)───containerd-shim(21448)───ceph-mgr(21474)───ssh(22995)
3. Kill the process
kill -9 process_id
Damasukma Trihanandi
Damasukma Trihanandi
How you think about what you are doing affect how you do it, or whether you do it at all.
Tags:
Catatan
Link copied to clipboard.