合 在Linux系统中如何找到资源占用率高的前几个进程(top N)
Tags: OS监控CPU总结内存常用命令磁盘top N查询CPU使用率磁盘IOCPU占用率资源占用率网络IO占用率使用率内存占用率命令整理总结占用率流量磁盘IO占用率
CPU占用率最高的前几个进程
https://www.dbaup.com/linuxzhitopmingling.html
1 2 3 4 | top --> Shift + p ps aux --sort=-%cpu | head -10 ps auxw|head -1;ps auxw|sort -rn -k3|head -10 ps auxw --sort=%cpu |
内存占用率最高的前几个进程
https://www.dbaup.com/linuxchakanzuixiaohaoneicundejincheng.html#top_ming_ling
https://www.dbaup.com/linuxxiachakanneicunshiyongqingkuang.html
1 2 3 4 5 6 7 8 9 | top --> Shift + m ps aux --sort=-%mem | head -10 ps auxw|head -1;ps auxw|sort -rn -k4|head -10 ps auxw|head -1;ps auxw|sort -rn -k5|head -10 ps auxw --sort=rss htop ps_mem smem |
磁盘IO占用率最高的前几个进程
1 2 | iotop --> o iostat -x |
网络IO占用率最高的前几个进程
https://www.dbaup.com/dbbao75linuxxiaruhezhaodaozhanyongliuliangzuidadejincheng.html
https://www.dbaup.com/linuxchakanchakanfuwuqiwangsugongjuzhiiftop.html