欢迎来到我的的博客园,祝大家学有所成,早点实现自己的人生理想。

Linux中进程与线程及CPU使用率查询

一、进程查询:

  ps -e -o 'pid,comm,args,pcpu,rsz,vsz,stime,user,uid'

  说明:PCPU是Cpu使用率,8核最多是800。 

  

  或者

  ps -aux

  

 

二、线程查询:

  cat /proc/13284/status

  说明:13284是进程ID。

  

 

posted @ 2017-05-12 10:04  宋兴柱  阅读(907)  评论(1编辑  收藏  举报