1830845 Members
2649 Online
110017 Solutions
New Discussion

Memory Monitoring

 
Ricky_2
Frequent Advisor

Memory Monitoring

Hi, I'm trying to find out how much memory is consumed by a certain app so that I can port it over to another system. How can I get that figure over a period of time and how can I differentiate between those used by the code, data and stack? Thanks.
9 REPLIES 9
RAC_1
Honored Contributor

Re: Memory Monitoring

UNIX95= ps -ef -o "ppid,pid,vsz,args"|sort -nk3

this will give you sorted list of process depending on memory usage.
There is no substitute to HARDWORK
Michael Tully
Honored Contributor

Re: Memory Monitoring

Here is one that is slightly different

UNIX95= ps -e -o user,pcpu,cpu,vsz,pid,ppid,args | sort -rnk2
Anyone for a Mutiny ?
harry d brown jr
Honored Contributor

Re: Memory Monitoring


glance/measureware & perfview products from HP

live free or die
harry
Live Free or Die
Ricky_2
Frequent Advisor

Re: Memory Monitoring

Hi Anil, thanks for the advice. You see, I need to find out the total amount of memory resources being used by certain processes that were started by the app. vsz doesn't give a real picture because adding up the individual vsz values will give me a final value greater than my physical memory. Thanks.
Ricky_2
Frequent Advisor

Re: Memory Monitoring

Hi Harry, I'm not too familiar with glance but how do I grep the values over a period of time at certain intervals? Thanks.
harry d brown jr
Honored Contributor

Re: Memory Monitoring


These are purchasable products from HP. The data glance displays isn't really grep'able, that's why you use perfview to review the data that glance/measureware collects.

live free or die
harry
Live Free or Die
RAC_1
Honored Contributor

Re: Memory Monitoring

check the glance page for syntax.
you can exeecute the glance at regular intervals to check the memory usage.


check gbl_mem_util metric.

glance -adviser_only -j2 -iterations 2 -syntax ./glance.syntax >> /tmp/glance.mem

where glance.syntax file contains
print "GBL MEM UTIL ",gbl_mem_util line.
There is no substitute to HARDWORK
Ricky_2
Frequent Advisor

Re: Memory Monitoring

Hi everybody, thanks for the prompt responses. I'll try out your recommendations and let you know the outcome. Thanks again.
Hamdy Al-Sebaey
Regular Advisor

Re: Memory Monitoring

Ricky,
I used this command;
UNIXX95= ps -eo "vsz args" |sort -n |more.

Or you can Glance, all ways guide to Rome.

Regards,
Hamdy
Thanks for sharing knowledge