Linux - How to find defunt process on linuxbox, Find and kill all defunct process in linux
How to find defunt process on linuxbox
how to find defunt process on linuxboxFind and kill all defunct process in linux
To find all defunct process
# ps axo ppid,pid,stat,comm | grep -w defunct
-w, --word-regexp
Select only those lines containing matches that form whole words. The test is that the matching substring must either be at the beginning of the line, or preceded by a non-word constituent character.
This option has no effect if -x is also specified.
To fins and kill all defunct process at once
# ps axo ppid,pid,stat,comm | grep -w defunct | awk '{print $2 }' | xargs kill -9
To find process which is using high memory
# ps -eo ppid,pid,stat,comm,user,args,pcpu,pmem | sor -k2 -r | head -10
To analyse using top
# top -n 2 -b # atop -c -m # sar -u 1 5 # vmstat 1 5 # iotop -t -P > /home/techbluff/iotraffic.txt # grep 'M/s' /home/techbluff/iotraffic.txt
The topic on Linux - How to find defunt process on linuxbox is posted by - Roger
Hope you have enjoyed, Linux - How to find defunt process on linuxboxThanks for your time