常用的有五种命令
top命令,查看cup统计
#top
//第三行%cpu(s):0.0 us 0.3sy, 0.0ni, 99.7id 0.0wa, 0.0hi, 0.0si, 0.0st cpu使用占比 us用户 sy系统 ni优先级 id空闲 wa等待 hi硬件 si软件 st虚拟机
//按q退出
2.ps命令 查看进程cup占用比
#ps -aux --sort -%cpu | head -20
//第三列为进程cpu占用比,head -20就看占用最高的20个进程,查看全部可以替换为more,按回车翻页查看
3.vmstat命令 cup统计负载
#vmstat
4.iostat命令 cup统计负载
#iostat
5.mpstat命令 cup统计负载
#mpstat