Linux
1.查看内存、CPU
1.内存消耗最多的前10个进程 : ps auxw|head - 1; ps auxw|sort -rn -k4|head - 10 2.CPU占用最多的前10个进程: psauxw|head - 1; ps auxw|sort -rn -k3|head - 10 3.虚拟内存使用最多的前10个进程: ps auxw|head - 1; ps auxw|sort -rn -k5|head - 10 注:RSS 进程使用的驻留集大小或者是实际内存的大小(RSS is the "resident 5. set size" meaning physical memory used)
标签:sort,10,head,运维,ps,Linux,rn,auxw From: https://www.cnblogs.com/jiangxm157/p/17028816.html