cancel
Showing results for 
Search instead for 
Did you mean: 

memory usage

Jorge Prado T._1
Occasional Contributor

memory usage

Hi,
In HP-UX 11i, Exists some commando to review the memory occupied by users, system and bufer breaks?
Not this available glance.

Thanks.

Jorge Prado T.
5 REPLIES
Steven E. Protter
Exalted Contributor

Re: memory usage

I don't know what a buffer break is.

If you identify the process and use gpm, the graphical version of glance, you can get lots of information on the process.

Are you using glance(text) or gpm?

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
Geoff Wild
Honored Contributor

Re: memory usage

This will show you the top 30 memory processess:

UNIX95= ps -e -o 'vsz pid ruser args' |sort -nr|head -30

This one shows you by user:

# cat usermem

#!/bin/ksh
# usermem - display memory claimed by a user
#
if [ $# -lt 1 -o \( $# -gt 1 -a $# -lt 4 \) ]
then
echo "Usage:"
echo "usermem \"userid\""
echo "Example:"
echo "usermem gwild"
exit 1
fi
echo " "

USER=$1
t=0
for j in `UNIX95= ps -e -o vsz=Kbytes -o ruser -o pid,args=Command-Line | sort -rnk1 | grep -v Kbytes | grep $USER | awk '{print $1}'`
do
t=`expr $t + $j`
done
echo "\nMemory claimed by $USER: $t Kbytes.\n"


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.
Peter Godron
Honored Contributor

Re: memory usage

Jorge,
from a previous thread:
vmstat -n 1 10
top (RES is resident size in Kb)

But glance seems to be the real solution

Regards
Henk Geurts
Esteemed Contributor

Re: memory usage

hi Jorge

The commonly used memory diagnostics tools are :

size
vmstat
ipcs
glance
swapinfo
perfview
and sar ....

you can check manpages for theis specific uses.....

regards .
kgill
Frequent Visitor

Re: memory usage

HPUX Kmem is a good tool for this purpose .

It was available on the old ITRC website . .