Operating System - HP-UX
1752781 Members
6047 Online
108789 Solutions
New Discussion юеВ

Re: To find highly memory utilized processes

 
Memory
Occasional Advisor

Re: To find highly memory utilized processes

AS Naj suggested i have tried by seting alias.

still i could'nt retrive the processes, any other method to retrive the high memory / swap utilized processes

uctvp628% nexec -e alias ps="UNIX95= /usr/bin/ps"
uctvp628% nexec -e ps -e -o "user,vsz,pid,ppid,args" | awk 'NR>1' | sort -rnk2 | head -10
ps: illegal option -- o
usage: ps [-edaxzflP] [-u ulist] [-g glist] [-p plist] [-t tlist] [-R prmgroup] [-Z psetidlist]
uctvp628%
UVK
Trusted Contributor

Re: To find highly memory utilized processes

try these.

 

ps auwx |sort тАУr +2 | head тАУx  (where x =5, 10, 15, etc..)   ├а         this is to see top CPU using processes
ps auwx |sort тАУr +3 | head тАУx (where x =5, 10, 15, etc..)    ├а         this is to see top Memory using processes

-------------------------------------------
Like it or worked !! Click kudos !!
Memory
Occasional Advisor

Re: To find highly memory utilized processes

 

Pls find the below outputs , still not able to retrieve

uctvp628% nexec -e ps auwx |sort -r +2 | head -5
 16363 pts/2     0:00 ps
   PID TTY       TIME COMMAND
uctvp628% nexec -e ps auwx |sort -r +2 | head -10
 16435 pts/2     0:00 ps
   PID TTY       TIME COMMAND
uctvp628% nexec -e ps auwx |sort -r +3 | head -15
 16663 pts/3     0:00 ps
   PID TTY       TIME COMMAND

Dennis Handly
Acclaimed Contributor

Re: To find highly memory utilized processes

>pls suggest any other method to get the highly memory utilized process. also to find the exact swap utilization and the process consuming swap.

 

First try using the provided ps(1) commands without this nexec.

 

swapinfo -tam will give you the big picture.

Steven E. Protter
Exalted Contributor

Re: To find highly memory utilized processes

Shalom,

 

See this article.

 

http://www.hpux.ws/?p=8

 

Regards,

 

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
Memory
Occasional Advisor

Re: To find highly memory utilized processes

i cannot execute command with out nexec -e , am not connecting the servers via putty , we have separate interface to connect servers .
Dennis Handly
Acclaimed Contributor

Re: To find highly memory utilized processes

>I cannot execute command without nexec -e

 

You can't logon at all just to try the experiment?

Steven E. Protter
Exalted Contributor

Re: To find highly memory utilized processes

Shalom,

 

Are you logged in on console?

 

Doesn't matter whether you are using putty or not. We need to see command output to assist.

 

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
Steven E. Protter
Exalted Contributor

Re: To find highly memory utilized processes

Setting UNIX95 in the root command profile will cause among other bad things, checksums on patches to fail. You will not be able to create depots.  Only set UNIX95 when you need to set UNIX95

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
Hakki Aydin Ucar
Honored Contributor

Re: To find highly memory utilized processes

another alternative to use glance OR full-path /opt/perf/bin/glance if you have, it is talented tool, also Steven 's mem.mon script is great.

but I suspect your connection issue what kind of connection you try ?