linux系统PS命令,按CPU、内存使用率对进程排序

按CPU使用比排序

降序取前十 

# ps aux --sort=-pcpu | head -10

USER      PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root     19596  0.2  0.0 126032  8232 ?        S<sl Apr11  98:35 /usr/local/aegis/aegis_client/aegis_10_63/AliYunDun
oracle    8445  0.1  0.0 26960116 49952 ?      Ss   Apr19  59:49 ora_dia0_oracle11
oracle    8489  0.1  0.1 26953460 90184 ?      Ss   Apr19  36:59 ora_mmnl_oracle11
root         1  0.0  0.0  21276   848 ?        Ss    2018   7:43 /sbin/init
root         2  0.0  0.0      0     0 ?        S     2018   0:00 [kthreadd]
root         3  0.0  0.0      0     0 ?        S     2018   0:42 [migration/0]
root         4  0.0  0.0      0     0 ?        S     2018   0:59 [ksoftirqd/0]
root         5  0.0  0.0      0     0 ?        S     2018   0:00 [stopper/0]
root         6  0.0  0.0      0     0 ?        S     2018   0:09 [watchdog/0]
root         7  0.0  0.0      0     0 ?        S     2018   0:40 [migration/1]
root         8  0.0  0.0      0     0 ?        S     2018   0:00 [stopper/1]
root         9  0.0  0.0      0     0 ?        S     2018   0:43 [ksoftirqd/1]
root        10  0.0  0.0      0     0 ?        S     2018   0:09 [watchdog/1]
 

按内存使用比排序

# ps aux --sort -rss | head -10

USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
oracle    8453  0.0  8.5 26982256 5657356 ?    Ss   Apr19   6:31 ora_dbw0_oracle11
oracle    8457  0.0  8.5 26974064 5656500 ?    Ss   Apr19   6:31 ora_dbw1_oracle11
oracle    8465  0.0  8.5 26982256 5650496 ?    Ss   Apr19   6:29 ora_dbw3_oracle11
oracle    8461  0.0  8.5 26974128 5641936 ?    Ss   Apr19   6:25 ora_dbw2_oracle11
oracle   23509  0.0  8.1 26955036 5420564 ?    Ss   Apr20   7:20 oracleoracle11 (LOCAL=NO)
oracle   24026  0.0  8.1 26955036 5419116 ?    Ss   Apr20   7:13 oracleoracle11 (LOCAL=NO)
oracle   23806  0.0  8.1 26955172 5415036 ?    Ss   Apr20   7:16 oracleoracle11 (LOCAL=NO)
oracle   23372  0.0  8.1 26955036 5414332 ?    Ss   Apr20   7:20 oracleoracle11 (LOCAL=NO)
oracle   23380  0.0  8.1 26955036 5409668 ?    Ss   Apr20   7:10 oracleoracle11 (LOCAL=NO)
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值