摘要: # Linux 下 取进程占用 cpu 最高的前10个进程ps aux|head -1;ps aux|grep -v PID|sort -rn -k +3|head # linux 下 取进程占用内存(MEM)最高的前10个进程ps aux|head -1;ps aux|grep -v PID|so 阅读全文
posted @ 2017-07-24 13:13 Mister_W 阅读(408) 评论(0) 推荐(0) 编辑
摘要: 查看系统默认的最大文件句柄数,系统默认是1024 # ulimit -n 1024 查看当前进程打开了多少句柄数 # lsof -n|awk '{print $2}'|sort|uniq -c|sort -nr|more 131 24204 57 24244 57 24231 ........ 其中 阅读全文
posted @ 2017-07-24 13:12 Mister_W 阅读(477) 评论(0) 推荐(0) 编辑