- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to know which are the server processes tak...
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
Forums
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
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 04:01 AM
10-23-2008 04:01 AM
How to know which are the server processes taking lot of CPU usage?
I want to know which are the processes taking lot of CPU usage. Through 'top' command I can know this fact. But I want to know only CPU% for all top 10 processes which are taking lot of CPU usage. How 'ps' command can be constructed so that I can know this fact?
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2008 04:04 AM
10-23-2008 04:04 AM
Re: How to know which are the server processes taking lot of CPU usage?
http://www.hpux.ws/?p=8
This memory leak detector uses some ps commands you can use. This and the man page can help you identify what you seem to seek.
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
10-23-2008 04:11 AM
10-23-2008 04:11 AM
Re: How to know which are the server processes 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:47 AM
10-23-2008 04:47 AM
Re: How to know which are the server processes taking lot of CPU usage?
For your reference: I am attaching following some top processes list.
---------------------------------------------
4 ? 21634 applprod 241 20 261M 209M run 8:28 100.15 99.98 f60webmx
1 ? 26737 applprod 154 20 79988K 28044K sleep 0:14 8.49 8.48 f60webmx
4 ? 26412 applprod 154 20 74344K 21460K sleep 0:14 2.36 2.35 f60webmx
4 ? 4592 applprod 152 20 515M 182M run 2:32 2.29 2.29 java
2 ? 9479 applprod 154 20 90988K 38476K sleep 1:30 2.21 2.21 f60web
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2008 06:16 PM
10-23-2008 06:16 PM
Re: How to know which are the server processes taking lot of CPU usage?
Why not use top(1) to get this info?
top -f top.out -n 10
sed -n -e '/^CPU TTY/,$ p' top.out