aix查看oracle进程内存,【学习笔记】DBA运维监控aix 查询进程占用内存大小的4种方法...

aix查看oracle进程内存,【学习笔记】DBA运维监控aix 查询进程占用内存大小的4种方法...天萃荷净 分享一篇关于运维 DBA 在监控 IBM AIX 小型机时查看内存用量的方法 总结出 4 种统计 aix 系统进程占用内存大小的方法 1 AIX 内存从大到小排序 bash 3 00 ps aux head 1 ps aux sort rn 3 head 10 USER PID CPU MEM SZ RSS TTY

大家好,我是讯享网,很高兴认识大家。

天萃荷净

分享一篇关于运维DBA在监控IBM AIX小型机时查看内存用量的方法,总结出4种统计aix系统进程占用内存大小的方法

1.AIX内存从大到小排序

-bash-3.00$ ps aux | head -1 ; ps aux | sort -rn +3 | head -10

USER PID %CPU %MEM SZ RSS TTY STAT STIME TIME COMMAND

root 0.1 2.0 30508 29724 - A Dec 21 235:34 /usr/sbin/secld

zhldang 0.0 0.0 1208 1288 pts/15 A 11:20:20 0:00 -bash

zhldang 0.0 0.0 2036 1056 - A 11:20:15 0:00 sshd: zhldang@p

zerbo625 0.0 0.0 1164 1244 pts/24 A 11:04:35 0:00 -bash

zerbo625 0.0 0.0 1796 1036 - A 11:04:29 0:00 sshd: zerbo625@

yxq198sm 0.0 0.0 152 156 - A 12:24:48 0:00 sleep 30

yxq198sm 0.0 0.0 1600 1872 - A Feb 01 0:06 /usr/bin/bsh /u

yanmotia 0.0 0.0 1164 768 pts/22 A Dec 23 0:00 -bash

xinximai 0.0 0.0 1156 760 pts/83 A Dec 28 0:00 -bash

xifengke 0.0 0.0 1160 756 pts/80 A Dec 05 0:00 -bash

内存从大到小排序(详细执行命令)

-bash-3.00$ ps -ealf | head -1 ; ps -ealf | sort -rn +9 | head -10

F S UID PID PPID C PRI NI ADDR SZ WCHAN STIME TTY TIME CMD

A root 1 0 60 20 2823c400 36708 * Jan 03 - 676:39 /usr/sbin/secldapclntd

A root 1 0 60 22 30508 * Dec 21 - 235:40 /usr/sbin/secldapclntd

A root 86176 0 60 20 205f8400 4088 Sep 15 - 11:04 /usr/lpp/X11/bin/X -D /usr/lib/X11//rgb -T -force :0 -auth /var/dt/A:0-0xukaa

A root 0 60 20 142a400 3992 fc9e8c8 11:19:59 - 0:00 sshd: zhldang [priv]

A root 0 60 20 2075f400 3992 fbb0cc8 12:21:48 - 0:00 sshd: undeadbird [priv]


讯享网

A root 0 60 20 916a400 3988 fb068c8 13:07:55 - 0:00 sshd: wangyh0313 [priv]

A root 0 60 20 3876 ff94c8 11:02:58 - 0:00 sshd: intrepid [priv]

A root 0 60 20 44a8400 3816 f64c8 11:01:54 - 0:00 sshd: oracleplus [priv]

A root 0 60 20 22c7b400 3784 fb050c8 11:04:12 - 0:00 sshd: zerbo625 [priv]

A undeadbi 0 60 20 2355f400 3104 fc2c878 13:03:08 pts/9 0:00 /usr/bin/smitty

2.查找某个AIX进程使用内存

-bash-3.00$ ps aux | head -1 ; ps aux | grep oracleplus

USER PID %CPU %MEM SZ RSS TTY STAT STIME TIME COMMAND

oracleplus 0.0 0.0 1836 1044 - A 11:02:05 0:00 sshd: oracleplus@

oracleplus 0.0 0.0 1148 1228 pts/20 A 11:02:10 0:00 -bash

root 0.0 0.0 3816 3024 - A 11:01:54 0:00 sshd: oracleplus

oracleplus 0.0 0.0 912 940 pts/20 A 13:03:06 0:00 ps aux

oracleplus 0.0 0.0 228 240 pts/20 A 13:03:06 0:00 grep oracleplus

查找某个进程使用内存(详细执行命令)

-bash-3.00$ ps -ealf | head -1 ;ps -ealf|grep oracleplus

F S UID PID PPID C PRI NI ADDR SZ WCHAN STIME TTY TIME CMD

40001 A oracleplus 0 60 20 1836 11:02:05 - 0:00 sshd: oracleplus@pts/20

A oracleplus 1 60 20 960 12:57:25 pts/20 0:00 ps -ealf

A oracleplus 0 60 20 10cc6400 228 f6ca0 12:57:25 pts/20 0:00 grep oracleplus

A root 0 60 20 44a8400 3816 f64c8 11:01:54 - 0:00 sshd: oracleplus [priv]

--------------------------------------ORACLE-DBA----------------------------------------

最权威、专业的Oracle案例资源汇总之【学习笔记】DBA运维监控aix 查询进程占用内存大小的4种方法

小讯
上一篇 2025-02-21 08:00
下一篇 2025-03-28 09:07

相关推荐

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/58943.html