Operating System - HP-UX
1748181 Members
4141 Online
108759 Solutions
New Discussion

Re: HP-UX Memory Utilization

 
rakeshmani
Occasional Visitor

HP-UX Memory Utilization

How can we check Memory Usage on HP-UX Server where output should be in MB format ?

 

Memory Size in MB

Memory Swap in MB

Memory Used MB

Memory Free MB
Swap Free MB

5 REPLIES 5
rakeshmani
Occasional Visitor

Re: HP-UX Memory Utilization

Would prefer to use comands which are already available with HP-UX instead of installing some third party tool.

Dennis Handly
Acclaimed Contributor

Re: HP-UX Memory Utilization

>How can we check Memory Usage on HP-UX Server where output should be in MB format?

 

swapinfo(1m) will give you swap size, used and free.

 

You'll probably have to purchase glance to get memory usage.

Calling pstat_getstatic(2) can get memory size.

Calling pstat_getdynamic(2) can get free memory pages.

rakeshmani
Occasional Visitor

Re: HP-UX Memory Utilization

Thank You Dennis !!

 

Yeah we checked Glance however looking for some internal commands. We will try what you advised.

 

We also tried vmstat and as much could be understood.. output contains information about Memory Pages. It does not match with what we are looking for.

 

Is there any switch with "vmstat" command which can help ? meaning any particular syntax of vmstat which can provide Memory Usage is MB format.

Ajin_1
Valued Contributor

Re: HP-UX Memory Utilization

vmstat 5 55 (5th collumn)

Thanks & Regards
Ajin.S
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Bill Hassell
Honored Contributor

Re: HP-UX Memory Utilization

vmstat -s

 

Probably more information than you can use, but you can grep for the description(s) you need.



Bill Hassell, sysadmin