- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: 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
Forums
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
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...