- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to list and sort the process by memory usage.....
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
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
тАО09-30-2009 12:44 PM
тАО09-30-2009 12:44 PM
Glance showing 95% memory used... i want to sort the process by memory usage...
top also showing same as 95% use...
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2009 12:53 PM
тАО09-30-2009 12:53 PM
SolutionYou could use:
# UNIX95= ps -ef -o vsz= -o pid= -o ppid= -o comm=|sort -krn1,1|more
There is no semicolon after 'UNIX95=". This keeps the setting only for the duration of the command line.
The headings for the columns are supressed. The output is sorted in descending virtual size. see the manpages for 'ps'. You can add or subtract to the fields returned.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2009 12:58 PM
тАО09-30-2009 12:58 PM
Re: how to list and sort the process by memory usage...
thanks for reply....
can you explain the field...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2009 01:00 PM
тАО09-30-2009 01:00 PM
Re: how to list and sort the process by memory usage...
http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1254344070310+28353475&threadId=1370471
Also I recommend you to use "lsof" command to check memory -> process relation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2009 01:02 PM
тАО09-30-2009 01:02 PM
Re: how to list and sort the process by memory usage...
> can you explain the field...
The manpages explain the meaning of each field (as you would expect):
http://docs.hp.com/en/B2355-60105/ps.1.html
Please also readL
http://forums13.itrc.hp.com/service/forums/helptips.do?#28
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-30-2009 01:29 PM
тАО09-30-2009 01:29 PM
Re: how to list and sort the process by memory usage...
UNIX95= ps -ef -o vzm= -o pid -o ppid -o comm= |sort -krn1,1
is working