1832277 Members
2068 Online
110041 Solutions
New Discussion

Monitoring of Memory

 
mario_43
Occasional Contributor

Monitoring of Memory

Hi folk,

I'd to monitor the cpu and memory utilization during the day.
To monitor the cpu I use the sar tool (in my case: sar -uM -o ./CPU_activity.sar 60 600).
I'd to know if there is something similar for the memory? I've seen vmstat, but I prefer a tool that show the percentage use of physics memory.
Thanks in advance,
M

5 REPLIES 5
Helen French
Honored Contributor

Re: Monitoring of Memory

You can use GlancePlus if you have it. It's a priced product from HP that can be used for monitoring all type of resources and system performance.
Life is a promise, fulfill it!
doug mielke
Respected Contributor

Re: Monitoring of Memory

try swapinfo for similar to sar.

physical memory reporting in Unix is less than accurate.

Memory fills with what may be needless data. For example, a utility that you only use at startup, will remain in memory until something else needs the physical memory.

Thus memory nlooks occupied, but is really available, in that the very next request will be served by a one time swapping out of the useless data.

Swap statisisics are the more meaningful metric.
Robert-Jan Goossens
Honored Contributor

Re: Monitoring of Memory

Hi Mario,

Take a look at this link, there are some commands and a script to monitor your memory.

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xcf41fdd65cf5204b9213af00f88fca94,00.html

Kind regards,

Robert-Jan.
Tim Adamson_1
Honored Contributor

Re: Monitoring of Memory

Have a look in /usr/contrib/Q4/bin. If there is a file(s) called kmeminfo. then run it and check the output. It should have what you need. Simply redirect the output to a file.

You can then use cron to run it periodically and append the result to a file (with the date and time).


Tim.
Yesterday is history, tomorrow is a mystery, today is a gift. That's why it's called the present.
twang
Honored Contributor

Re: Monitoring of Memory

But I would suggest you take a look at output from vmstat regularly.
It gives you virtual memory statistics. One thing to look for in these statistics is the amount of paging activity, shown under po. A number greater than zero means that the system is paging. Response time will be a slow if too many processes are blocked (b). The cause is often insufficient RAM.