Top Consumers Recipes
See https://github.com/100daysofdevops/100daysofdevops/blob/master/performance_tuning/performance-monitoring.sh
the top 5 processes by CPU usage
ps -eo pcpu,pid,user,args | sort -k 1 -r | head -n 5
the top 5 processes by memory usage
ps -eo pmem,pid,user,args | sort -k 1 -r | head -n 5
the top 5 processes by I/O usage
Assumes iotop
.
sudo iotop -o -b -n 5
the top 5 processes by network usage
Assumes iftop
.
sudo iftop -P -n -t -s 5