Operating System - HP-UX
1829738 Members
1793 Online
109992 Solutions
New Discussion

how to monitor the memory!

 
leyearn
Regular Advisor

how to monitor the memory!

how to find the processes which use the memory most?

thanks


6 REPLIES 6
Hoefnix
Honored Contributor

Re: how to monitor the memory!

You can use:
ps -alf | sort -rnk 10 | more

The proces that is using the most is at the top of the list.

HTH,
Peter Geluk
T G Manikandan
Honored Contributor

Re: how to monitor the memory!

UNIX95= ps -e -o ruser,pid,vsz=Kbytes|more
Borislav Perkov
Respected Contributor

Re: how to monitor the memory!

Hi,

You can try with
top
command
Elmar P. Kolkman
Honored Contributor

Re: how to monitor the memory!

Or, if installed, try glance...
Mind that you see the virtual size from ps. Shared text segments will show up for every instance of the executable, for instance.
Every problem has at least one solution. Only some solutions are harder to find.
Chuck Ciesinski
Honored Contributor

Re: how to monitor the memory!

Leyearn,

Another system performance product is SOS now called MetaView form Lund Performance Solutions.
Give you a look at memory, disk, cpu, and network. Real similiar to Glance...

HTH,

Chuck Ciesinski
"Show me the $$$$$"
Geoff Wild
Honored Contributor

Re: how to monitor the memory!

#!/bin/sh
# memtop - show top memory users and pid
# VSZ is in KB
echo "VSZ(KB) PID RUSER COMMAND"
UNIX95= ps -e -o 'vsz pid ruser args' |sort -nr|head -30


Change the head to how many you want to see.....

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.