- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- To find highly memory utilized processes
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2011 02:34 AM
07-20-2011 02:34 AM
To find highly memory utilized processes
MY swap utilization is very high ., i just need to find the top memory utilization processes.
am using below command to retrieve , but due to shell problm am getting error UNIX95 not found , pls suggest.
my command : UNIX95=1 ps -eo pid,ppid,vsz,args | sort -nr | head -10
also can anyone help me to find high swap utilized processes, its an HPUX 11.31 OS.
- Tags:
- UNIX95
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2011 02:51 AM
07-20-2011 02:51 AM
Re: To find highly memory utilized processes
Try below
UNIX95= ps -eo sz,comm,args | sed 1d | sort -rn | awk '{size=$1/1024; printf("%dMb %s\n", size,$2);}'
or
UNIX95= ps -eo vsz,comm,args | sed 1d | sort -rn | more
Thanks
BR
Naj
____________________________________________
:: Really appreciate if you could assign some points.
:: Don't know how to assign point? Click the KUDOS! star!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2011 03:05 AM
07-20-2011 03:05 AM
Re: To find highly memory utilized processes
still am getting the error : UNIX95= not uctvp628%
nexec -e UNIX95= ps -eo vsz,comm,args | sed 1d | sort -rn | more
/sbin/sh: UNIX95=: not found. uctvp628%
uctvp628% nexec -e UNIX95= ps -eo sz,comm,args | sed 1d | sort -rn | awk '{size=$1/1024; printf("%dMb %s\n", size,$2);}'
/sbin/sh: UNIX95=: not found.
am not connecting via putty, we have separate tool to connect the servers with out giving any username / password. suspect the issue is with some terminal issue , pls suggest
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2011 03:08 AM
07-20-2011 03:08 AM
Re: To find highly memory utilized processes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2011 03:21 AM
07-20-2011 03:21 AM
Re: To find highly memory utilized processes
#machinfo
Send me output
Thanks
____________________________________________
:: Really appreciate if you could assign some points.
:: Don't know how to assign point? Click the KUDOS! star!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2011 04:07 AM
07-20-2011 04:07 AM
Re: To find highly memory utilized processes
CPU info:
4 Intel(R) Itanium 2 9000 series processors (1.6 GHz, 12 MB)
533 MT/s bus, CPU version C2
6 logical processors
Memory: 51150 MB (49.95 GB)
Firmware info:
Firmware revision: 9.48
FP SWA driver revision: 1.18
IPMI is supported on this system.
Invalid combination of manageability firmware has been installed on this system.
Unable to provide accurate version information about manageability firmware
Platform info:
Model: "ia64 hp superdome server SD64B"
Machine ID number: e1e5bca6-6c59-11dc-aaee-556ef2dbb276
Machine serial number: USE473436M
OS info:
Nodename: uctvp628
Release: HP-UX B.11.31
Version: U (unlimited-user license)
Machine: ia64
ID Number: 3789929638
vmunix _release_version:
@(#) $Revision: vmunix: B.11.31_LR FLAVOR=perf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2011 06:08 AM
07-20-2011 06:08 AM
Re: To find highly memory utilized processes
Try this $ UNIX95= ps -e -o "user,vsz,pid,ppid,args" | awk 'NR>1' | sort -rnk2 | head -10
Or if you can check top output also.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2011 06:15 AM
07-20-2011 06:15 AM
Re: To find highly memory utilized processes
When using the UNIX95 syntax, it is important to remember that there is a space between the equal sign (=) and the ps command. I think that may be why you were getting errors when you tried the command Naj gave you.
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2011 07:22 AM
07-20-2011 07:22 AM
Re: To find highly memory utilized processes
Hi,
Sorry being late to reply,
I'd tested all the command above and was working fine from my end.
I do not sure what exactly problem that you have facing but you can try execute below command
alias ps="UNIX95= /usr/bin/ps"
Now, all your ps commands will have the extra options available.
Next step is try execute ps command without UNIX95
root@twst2a / # ps -e -o "user,vsz,pid,ppid,args" | awk 'NR>1' | sort -rnk2 | head -10
root 503800 16579 15163 /opt/OV/lbin/perf/coda
root 48540 11899 1 /opt/wbem/lbin/cimprovagt 3 9 SFMProviderModule
root 33488 16073 1 /opt/perf/bin/midaemon
root 19384 16054 1 /opt/perf/bin/scopeux
root 18664 25255 1 /opt/omni/lbin/crs
root 16944 15907 12997 sort -n
Good luck!
Thanks
BR
Naj
____________________________________________
:: Really appreciate if you could assign some points.
:: Don't know how to assign point? Click the KUDOS! star!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2011 07:42 AM
07-20-2011 07:42 AM
Re: To find highly memory utilized processes
@Naj wrote:
...Next step is try execute ps command without UNIX95
root@twst2a / # ps -e -o "user,vsz,pid,ppid,args" | awk 'NR>1' | sort -rnk2 | head -10
That isn't going to work in HP-UX. The '-o' argument applies only to XPG4 (UNIX95). You have given it the appearance of working by setting the environmental variable in your alias.
Don't think, either, about setting UNIX95 in your login profile. There may be side effects with other commands of which you are not aware and which will lead you into trouble. Setting the variable locallly for the duration of the command line is what the variable declaration does when followed by whitespace and a command. This is safe.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2011 08:08 AM
07-20-2011 08:08 AM
Re: To find highly memory utilized processes
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%
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2011 09:35 AM
07-20-2011 09:35 AM
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 !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2011 10:00 AM
07-20-2011 10:00 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2011 10:10 AM
07-20-2011 10:10 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2011 10:20 AM
07-20-2011 10:20 AM
Re: To find highly memory utilized processes
Shalom,
See this article.
Regards,
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2011 10:26 AM
07-20-2011 10:26 AM
Re: To find highly memory utilized processes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2011 10:39 AM
07-20-2011 10:39 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2011 02:50 PM
07-20-2011 02:50 PM
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
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2011 02:52 PM
07-20-2011 02:52 PM
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
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2011 11:41 PM - edited 07-20-2011 11:42 PM
07-20-2011 11:41 PM - edited 07-20-2011 11:42 PM
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 ?