首页 > 系统相关 >Linux运维

Linux运维

时间:2023-01-05 20:56:07浏览次数:37  
标签:sort 10 head 运维 ps Linux rn auxw

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

相关文章