Linux下查看最消耗CPU、内存的进程命令
<p>CPU占用最多的前10个进程:</p><pre>ps auxw|head -1;ps auxw|sort -rn -k3|head -10</pre>
<p>内存消耗最多的前10个进程</p>
<pre>ps auxw|head -1;ps auxw|sort -rn -k4|head -10</pre>
<p>虚拟内存使用最多的前10个进程</p>
<pre>ps auxw|head -1;ps auxw|sort -rn -k5|head -10</pre>
<p class="post-copyright">未经允许不得转载:<ahref="https://www.wangchao.info/">王超博客</a> » <ahref="https://www.wangchao.info/1783.html">Linux下查看最消耗CPU、内存的进程命令</a></p>
页:
[1]