- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: top ten 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
тАО06-03-2011 07:57 AM
тАО06-03-2011 07:57 AM
Whats the command for top ten processes in HP-UX?
I dont want to use "top" command as it is refreshing.
Is there any command which just give a o/p of top ten processes?
Solved! Go to Solution.
- Tags:
- top
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-03-2011 08:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-03-2011 09:04 AM
тАО06-03-2011 09:04 AM
Re: top ten processes
Thanks for your reply.
I just wanted to know the command which gives the o/p of processes which is consuming more memory from ascending order.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-03-2011 09:13 AM
тАО06-03-2011 09:13 AM
Re: top ten processes
If you prefer, then:
# UNIX95= ps -e -ovsz= -opid= -ocomm= | sort -knr1,1 | head -10
There is nothing but whitespace after the 'UNIX95=' and before the 'ps'. This keeps UNIX95 behavior set only for the commandline. To do otherwise may lead to different behavior than you want. The '-o' option selects the fields to display and the trailing '=' suppresses the field headers. The sort orders the process list in descending virtual memory size.
For the CPU usage, you could look at the cumulative execution time':
# UNIX95= ps -e -otime= -opid= -ocomm= | sort -kr1,1 | head -10
Regards!
...JRF...
- Tags:
- UNIX95
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-03-2011 09:14 AM
тАО06-03-2011 09:14 AM
Re: top ten processes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-03-2011 09:21 AM
тАО06-03-2011 09:21 AM
Re: top ten processes
> Will these scommand work for OS vers. 11.11 & 11.23
Absolutely.
Regards!
...JRF...