按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)