- 论坛徽章:
- 0
|
lxdb0294::/opt/app/oracle/admin#top -b -n 1 -U oracle|awk '$9!=0.0'
top - 17:25:56 up 129 days, 18:19, 1 user, load average: 4.99, 5.45, 5.74
Tasks: 1097 total, 2 running, 1095 sleeping, 0 stopped, 0 zombie
Cpu(s): 9.4%us, 1.0%sy, 0.0%ni, 85.2%id, 4.0%wa, 0.1%hi, 0.3%si, 0.0%st
Mem: 132092768k total, 114680036k used, 17412732k free, 568852k buffers
Swap: 34291704k total, 6496k used, 34285208k free, 49765472k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
3125 oracle 25 0 52.3g 76m 28m R 99.2 0.1 3:49.99 oracle
24436 oracle 15 0 52.3g 130m 40m S 37.2 0.1 3388:17 oracle
4185 oracle 15 0 52.3g 76m 60m S 19.5 0.1 20:59.85 oracle
3161 oracle 15 0 52.3g 67m 46m S 17.7 0.1 8:45.80 oracle
9925 oracle -2 0 52.2g 36m 19m S 15.9 0.0 2189:13 oracle
15225 oracle 16 0 13432 1804 752 R 10.6 0.0 0:00.10 top <=== 不想要这个
2778 oracle 15 0 52.3g 77m 49m S 1.8 0.1 78:15.81 oracle
9919 oracle 15 0 52.3g 69m 31m S 1.8 0.1 393:55.64 oracle
这输出基本上达到我的要求,就是 oracle用户用cpu>0的进程,但中间有一行是 top,不想要这个.
也就是如何实现最后一列限制在oracle. |
|