cancel
Showing results for 
Search instead for 
Did you mean: 

hpux memory usage

 
SOLVED
Go to solution
System Unix
Frequent Advisor

hpux memory usage

Hello,
is there a proper way how to calculate a process memory usage ?

thanks,
Reuven
Reuven
8 REPLIES
Hakki Aydin Ucar
Honored Contributor
Solution

Re: hpux memory usage

Hi,

If you have glance in your system , you can use it very good tool.

in case of you do not have check this good link:
http://www.met.ca/itrc/index2.php?option=com_content&do_pdf=1&id=38#memory_usage_from
System Unix
Frequent Advisor

Re: hpux memory usage

Hi,
thanks for you reply.I would appriciate if you could attach the document, as I cant get to the page.
thanks,
Reuven
Reuven
Hakki Aydin Ucar
Honored Contributor

Re: hpux memory usage

unfortunately I cannot find this good doc in my notes to attach. But you can copy / arrange from this link :

http://www.chapelhill.homeip.net/horton/copies/MemoryUsage-HPUX.htm

other link has must be connection problem..
Hakki Aydin Ucar
Honored Contributor

Re: hpux memory usage

it is attached just you are not able to access the link.
george_urr
Occasional Visitor

Re: hpux memory usage

Hi Reuven

There is hp tool called kmeminfo with which you can view the split memory utilization of each process.

Re: hpux memory usage

I'm attaching a script which calculates top processes using memory.

syntax: mem.sh <# of processes>

regards,
Ismail Azad
Esteemed Contributor

Re: hpux memory usage

Hi reuven,


You can always use common unix tools like top,sar,iostat and vmstat. But if you want to use the HP proprietary tools, you can go ahead using glance or gpm. However, if you are using HPUX 11iv3 and the foundation operating environment, you might not be able to run glance. The best way to learn how to use the command glance is by using the man page and things that were done by sar are very readily done by glance as well.

Regards
Ismail
Read, read and read... Then read again until you read "between the lines".....
Michael Steele_2
Honored Contributor

Re: hpux memory usage

Hi:

These unix tools: top,sar,iostat and vmstat, will perform differently depending upon the O/S. However, using the 'ps' command with the -o argument to monitor 'vsz' and 'rsz' seems to be very reliable on solaris, hp-ux, and linux. The only difference between the two is 'vsz' is in kb and 'rsz' is in blocks, so there may be so more accuracy with blocks. Just learn the conversion.

Here is the basic command:

ps -e -o vsz,pid,ppid,comm | sort -rn | more

For HP-UX its:

UNIX95=1 ps -ef -o vsz,pid,ppid,comm | sort -rn | more

Note that the 'UNIX95' temporarily references the X open or XPG4 ps command format which allows you to use the -o options from Berkely UNIX. (* HP-UX defaults to the System 5 / ATT format *)
Support Fatherhood - Stop Family Law