Process

Find zombie process

System information as of Mon Mar  9 19:40:01 MYT 2020

  System load:    0.59               Processes:           167
  Usage of /home: 23.0% of 11.00GB   Users logged in:     1
  Swap usage:     0%                 IP address for eth1: 192.168.0.1

  => There is 1 zombie process.

  Graph this data and manage this system at https://landscape.canonical.com/

10 packages can be updated.
4 updates are security updates.

Last login: Mon Mar  9 10:23:48 2020
user@SERVER:~$

To find the zombie, use the command below to list out zombies and anything else with a Z in it:

user@SERVER:~$ ps aux | grep 'Z'

USER     PID     %CPU %MEM  VSZ    RSS TTY      STAT START   TIME COMMAND
user     13572   0.0  0.0   7628   992 pts/2    S+   19:40   0:00 grep --color=auto Z
user     93572   0.0  0.0   0      0   ??       Z    19:40   0:00 something

To find the zombie parent:

user@SERVER:~$ pstree -p -s 93572

init(1)---cnid_metad(1311)---cnid_dbd(5145)

Kill a process accessing a specific port

fuser -k <port_num>/<protocol>
  • port_num -> specific port in range 1-65535

  • protocol -> either tcp or udp

Last updated