Operating System - HP-UX
1751920 Members
4879 Online
108783 Solutions
New Discussion юеВ

Average memory utilization

 
SOLVED
Go to solution
Vishu
Trusted Contributor

Average memory utilization

Hi,

please help in taking the average memory utilization of HP-UX 11.00 server for one week. As for disk and CPU usage, we can have from sar command. which command we will use for memory.

Thanks
18 REPLIES 18
Sharma Sanjeev
Respected Contributor

Re: Average memory utilization

Hi vishu

The commands sar and vmstat

For example, sample CPU utilisation every 2 seconds for 5 iterations:

sar -u 2 5

or For memory utilisation every 2 seconds for 5 iterations:

vmstat 2 5

look at the avm and free fields

Regards
Sanjeev
Everything is Possible as " IMPOSSIBLE" word itself says I M POSSIBLE
Michal Kapalka (mikap)
Honored Contributor

Re: Average memory utilization

hi,

use glance or gpm ( gui )

mikap
Vishu
Trusted Contributor

Re: Average memory utilization

Thanks Sanjeev and Michal,

But i dont have the glance installed in my server...

and if vmstat helps, then i need it for one complete week. By anyway, i can add it to cron or any other way.

Thanks
Michal Kapalka (mikap)
Honored Contributor

Re: Average memory utilization

hi,

i don't like top but in some cases could be used.

maybe the top will help you.

mikap
Steven E. Protter
Exalted Contributor

Re: Average memory utilization

Shalom,

the sar commands will work.

This script will give you a complete performance snapshot using sar that will meet your needs:

http://www.hpux.ws/?p=6

No cost uses sar

production code.

Glance is available on your OS CD for 60 day evaluation.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Vishu
Trusted Contributor

Re: Average memory utilization

in top output, i found following line as memory


Memory: 772800K (271340K) real, 585612K (233832K) virtual, 669856K free Page# 1/15

can you please tell me in detail, what each field is showing. My server RAM is 4096MB, but i have not seen anything in GB in this output.

Plz suggest.
James R. Ferguson
Acclaimed Contributor

Re: Average memory utilization

Hi Vishu:

On of the "best" tools for doing what you want to do is 'glance' and 'measureware'. The reason is that 'glance' is architected to "understand" the HP-UX kernel. 'top' and 'sar' are more generic UNIX tools. With 'glance'/'measureware' you can collect and graph long term metrics,

Regards!

...JRF...
Vishu
Trusted Contributor

Re: Average memory utilization

Thanks James,

but i am trying with glance too on one server and trying to extract the data for today, but it is replying with the error :-

# ./extract -xp -r /tmp/moni -g -b today 14:00 -e today 15:00 -f stdout


Unable to read record from logfile, size returned = 0
Unable to read record from logfile, size returned = 0
Memory fault(coredump)

Plz suggest.
Nido
Trusted Contributor

Re: Average memory utilization

Hello Vishu,

>>>>Unable to read record from logfile, size returned = 0
>>>>Memory fault(coredump)

Check the status of measureware daemons:
#mwa status

Check the log files in:
/var/opt/perf/datafiles/log*

if its showing zero in size; try restarting mwa:

#mwa stop ; mwa start

Let me know the outcome.

Cheers!!

" Let Villagers Be Happy!! "