grimoire

personal wiki
git clone git://git.pyratebeard.net/grimoire.git
Log | Files | Refs

processes.md (431B)


      1 # processes
      2 
      3 ## zombies
      4 check the number of [zombie processes][]
      5 ```
      6 ps aux | awk '$8 ~ /Z/ { print }' | wc -l
      7 ```
      8 
      9 ## sort by resource usage
     10 find [top processes][] sorted by mem or cpu usage
     11 ```
     12 ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%mem | head
     13 ```
     14 
     15 [zombie processes]: https://www.howtogeek.com/119815/htg-explains-what-is-a-zombie-process-on-linux/
     16 [top processes]: https://tecmint.com/find-linux-processes-memory-ram-cpu-usage