linux查看占用cpu最高的进程

ps aux|head -1;ps aux|grep -v PID|sort -rn -k +3|head
通过top -Hp PID查找占用CPU最高的线程TID;

猜你喜欢

转载自blog.51cto.com/xiaozhenkai/2550525