Process memory utilization

 
Gordon_3
Regular Advisor

Process memory utilization

Hi all,

I have question on how to monitor the process memory utilization by different method, so far I have tried 3 methods.

1. Glance
Resources PID: 19496, java PPID: 19486 euid: 102 User: oracle
--------------------------------------------------------------------------------
CPU Usage (util): 9.1 Log Reads : 0 Wait Reason : SLEEP
User/Nice/RT CPU: 9.1 Log Writes: 0 Total RSS/VSS :154.7mb/731.9mb

It show RSS/VSS is 154Mb / 731Mb respectively.

2. ps

UNIX95= ps -ef -o pid,ruser,sz,vsz,args

19496 oracle 15631 63548 /home/oracle/oem10g/jdk/bin/PA_RISC2.0/java -Djava.security.pol

it show sz, vsz is 15k & 64k around

3. a C program find in this forum finding the memory consumption

uid pid shared_vm shared_ram private_vm private_ram Res_Mem

102 19486 15980K 1924K 6364K 4700K 6.5M

which show the Res_Mem is 6.5M


How come it show 3 totally different result for the Resident memory ?? Which one should I look? Thx.

Gordon




Gordon
3 REPLIES 3
Gordon_3
Regular Advisor

Re: Process memory utilization

Hi all,

Sorry I get a typo error, in fact the 3rd method RSS is 165M , which quite close to glance data, so only left is how to interpret the 'ps' result, thx .

Gordon

uid pid shared_vm shared_ram private_vm private_ram Res_Mem

102 19496 53628K 13428K 739476K 154600K 164.1M
Gordon
Franky_1
Respected Contributor

Re: Process memory utilization

Hi,

another method would be using the "top" command which also has a line in it showing the memory utilization

Regards

Franky
Don't worry be happy
Mike Stroyan
Honored Contributor

Re: Process memory utilization

The ps results are in units of 4K pages for sz and 1K for vsz. That works out to sz=63.3MB and vsz=63.5MB. The ps numbers are only the sizes of text, data, and stack regions. They don't count shared libraries, shared memory and memory mapped files.