Operating System - HP-UX
1846325 Members
3499 Online
110256 Solutions
New Discussion

Online memory utilisation

 
SOLVED
Go to solution
Kasman_1
Occasional Contributor

Online memory utilisation

Hi Gurus,

Is there any program/script that i can use for online monitoring of HP-UX memory utilisation ?

Thanks !
5 REPLIES 5
Peter Bemers
Occasional Advisor
Solution

Re: Online memory utilisation

Hi Kasman,

Several commands you can use, depends on what you prefer:

top, but not too much info
glance, if you have installed that
swapinfo -tam, to check your swap memory

I prefer to use glance, but it need to be installed first. If you want to check if you memory is still ok, you can use:
cstm
cstm> map
cstm> sel d
cstm> info
cstm> wait
cstm> il
cstm> exit

Hope that will do, best regards,

Peter.
Victor Fridyev
Honored Contributor

Re: Online memory utilisation

Hi,

If you want to see the processes on the top of memory usage, try the following:
TRHLD=1000
ps -el |sort -nr -k 10,11 |awk '$3 !="UID" {s+=$10;if($10>trh)print}
END{printf("%d PAGES %d MB\n",s,s/dv)} ' trh=$TRHLD dv=256

This command shows processes which use more than 1000 pages of memory.

Good luck
Entities are not to be multiplied beyond necessity - RTFM
Eric Antunes
Honored Contributor

Re: Online memory utilisation

Hi,

If you are talking also about virtual memory, you can use vmstat. For example:

#vmstat -dnS 5 1000

Best Regards,

Eric Antunes
Each and every day is a good day to learn.
Ranjith_5
Honored Contributor

Re: Online memory utilisation

Hi Kasman,

You can use Glance plus for a better and accurate information. This is a seperate product which can be purchased from hp and needs licence.

See:-
http://www.managementsoftware.hp.com/products/gplus/

regards,
Syam
Geoff Wild
Honored Contributor

Re: Online memory utilisation

Here's a cool c program - output like:

# memdetail
Memory Stat total used avail %used
physical 10080.0 2908.3 7171.7 29%
active virtual 636.8 531.4 105.3 83%
active real 263.9 183.9 80.0 70%
memory swap 7692.9 1601.6 6091.3 21%
device swap 26528.0 321.4 26206.6 1%


Rgds...Geoff
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.