- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to know which process is taking lot of CPU...
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
тАО10-23-2008 03:55 AM
тАО10-23-2008 03:55 AM
How to know which process is taking lot of CPU usage?
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-23-2008 04:10 AM
тАО10-23-2008 04:10 AM
Re: How to know which process is taking lot of CPU usage?
Define "...a lot of CPU usage". Does this mean as a cumulative amount since the process instantiation? Does this mean over n-interval?
How about this:
# UNIX95= ps -e -o pid= -o time= -o pcpu= -o comm=|sort -rk2,2|head -10
Note the whitespace after the equal sign in 'UNIX95'. This keeps this option set only for the duration of the command line.
The headings are suppressed for the output and only the top ten largest CPU processes are listed.
See the 'ps' manpages for more information.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-23-2008 04:43 AM
тАО10-23-2008 04:43 AM
Re: How to know which process is taking lot of CPU usage?
# export UNIX95=
# ps -eo "user,pid,pcpu,args" | sort -rnk3 | more
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-23-2008 04:47 AM
тАО10-23-2008 04:47 AM
Re: How to know which process is taking lot of CPU usage?
Do NOT set UNIX95 and export it to your environment! This can alter the behavior of several commands in ways that you might not be aware.
This is the reason I said to only set it for the duration of the command that needs it, as:
# UNIX95= ps ...
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-23-2008 07:46 AM
тАО10-23-2008 07:46 AM
Re: How to know which process is taking lot of CPU usage?
top - display and update information about the top processes on the
system.
/usr/bin/top
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-23-2008 07:47 AM
тАО10-23-2008 07:47 AM