<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Shell on 蓝尾蜂鸟</title><link>https://clibing.com/tags/shell/</link><description>Recent content in Shell on 蓝尾蜂鸟</description><generator>Hugo -- gohugo.io</generator><language>zh-cn</language><copyright>Copyright © 2011-2026 clibing. All Rights Reserved.</copyright><lastBuildDate>Thu, 16 Apr 2020 17:18:56 +0800</lastBuildDate><atom:link href="https://clibing.com/tags/shell/index.xml" rel="self" type="application/rss+xml"/><item><title>线上服务器资源排查</title><link>https://clibing.com/posts/linux/shell_memory_cpu/</link><pubDate>Thu, 16 Apr 2020 17:18:56 +0800</pubDate><guid>https://clibing.com/posts/linux/shell_memory_cpu/</guid><description>&lt;p>linux下获取占用CPU资源最多的10个进程，可以使用如下命令组合：
ps aux|head -1;ps aux|grep -v PID|sort -rn -k +3|head&lt;/p>
&lt;p>linux下获取占用内存资源最多的10个进程，可以使用如下命令组合：
ps aux|head -1;ps aux|grep -v PID|sort -rn -k +4|head&lt;/p></description></item></channel></rss>