日期:2014-05-16 浏览次数:20493 次
os: aix 6
db:10205
------使用os 命令观察oracle 进程内存消耗情况
#ps gv
...... size
23396516 - A 14907:02 5203
14324376 2058800 xx 90815 38576 2.0 3.0 oracle
23396516 - A 14907:02 5203
14324376 2058800 xx 90815 38576 2.0 3.0 oracle
57540768 - A 3711:33 8331
15108164 15146740 xx 90815 38576 1.9 23.0 oracle
16318890 - A 10639:03 187
15110924 15009560 xx 90815 38576 2.0 23.0 oracle
33554712 - A 17263:24 13740 9598740
185552 xx 90815 38576 2.1 0.0 oracle
41877820 - A 10492:10 826
15110484 15018716 xx 90815 38576 2.0 23.0 oracle
..............
单个进程消耗近15g 明显有问题啊
AIX/LINUX 如何查看单个进程在os层面的内存消耗 http://blog.csdn.net/lixora/article/details/24060299
这里提供其他查看进程内存大方法
----查看对应oracle的应用进程内存消耗情况
select p.username,p.spid,p.program,pm.category,pm.used,pm.allocated,pm.max_allocated
from v$process p ,v$process_memory pm;
-----where p.pid=pm.pid and program like '%TNS%';
41877820 :
USERNAME SPID PROGRAM CATEGORY USED ALLOCATED MAX_ALLOCATED
--------------- ------------ ------------------------------------------------ --------------- ---------- ---------- -------------
oracle 41877820
oracle@sssdb SQL 1.3077E+10 1.3081E+10 1.3081E+10
oracle 41877820
oracle@sssdb PL/SQL 224 2008