查询系统当前消耗句柄最多的10个进程

来源:互联网 发布:安卓手机怎么重置网络 编辑:程序博客网 时间:2024/06/05 09:29

如:查询系统当前消耗句柄最多的10个进程

lsof | awk '{print $2  " " $1}' | uniq -c | sort -k1 -nr |head -n 10

vmCIE:/ # lsof | awk '{print $2  " " $1}' | uniq -c | sort -k1 -nr |head -n 10
   1212 15900 java
    558 5477 java
    478 4214 java
    299 12950 oracle
    297 12954 oracle
    296 12956 oracle
    294 12952 oracle
    292 12960 oracle
    282 12958 oracle
    282 12944 oracle

0 0
原创粉丝点击