Operating System - HP-UX
1834587 Members
3462 Online
110069 Solutions
New Discussion

Re: Command to get the top processes which are taking most of the memory

 
hemant dubey_1
Advisor

Command to get the top processes which are taking most of the memory

Hi,

I need command by which i can get the top processes which are eating most of the memory as im my server memory utilization is 100% sometimes.
6 REPLIES 6
Peter Leddy_1
Esteemed Contributor

Re: Command to get the top processes which are taking most of the memory

Hi,

Try top, it will show you the current processes and their utilisation.

# top

Regards,

Peter
Steven E. Protter
Exalted Contributor

Re: Command to get the top processes which are taking most of the memory

Shalom,

http://hpuxconsulting.com/mem.mon

It's a newly written memory leak detctor, well documented, works on hpux, solaris and linux.

I would consider it late beta at this time.

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
Marcin O.
Frequent Advisor

Re: Command to get the top processes which are taking most of the memory

Hi

use top, if you have MWA, you can use glance (great tool).

Regards
Marcin
hemant dubey_1
Advisor

Re: Command to get the top processes which are taking most of the memory

i have tried with glance and top but these commands are giving output that is showing process which are taking maximum processor time not memory wise.
Wim Rombauts
Honored Contributor

Re: Command to get the top processes which are taking most of the memory

With glance (I use the graphical "gpm" command), you can configure the sorting column.
Select "Reports", "Process List"
In the new window, select "Configure", "Sort Fileds". Click the "Res Mem" column and then click on the left side of the leftmost column.
Do the same for "Virtual Memory".

Keep in mid that some processes use shared memory, and than 10 processes listing each 10GB memory can be using a total of 10GB or a total of 100GB ...
Robert-Jan Goossens
Honored Contributor

Re: Command to get the top processes which are taking most of the memory

UNIX95= ps -e -o ruser,pid,vsz=Kbytes|sort -nrk3

Regards,
Robert-Jan