- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Check process
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
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
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-24-2011 03:10 AM
10-24-2011 03:10 AM
Check process
I would like to find the server process which use high CPU ( ie. run over 10 hours and use 90 % CPU time ) and then kill such process , can advise how to write such script ?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2011 11:29 AM
10-24-2011 11:29 AM
Re: Check process
A similar recent topic:
http://h30499.www3.hp.com/t5/Languages-and-Scripting/system-script/m-p/5355375/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2011 08:49 PM
10-24-2011 08:49 PM
Re: Check process
thx reply ,
I tried it in my unix-like system ( eg. Redhat ), the output is a list of processes ( as below ) , these processes do not use 90% CPU , can advise how to use the script ? what I need to chang if run it at linux server ?
Thanks.
10021 0
10043 0
10143 0
10144 0
10697 0
11818 0
12682 0
12683 0
12710 0
12825 0
14029 0
14207 0
14212 0
14213 0
14214 0
14310 0
14311 0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2011 10:00 PM - edited 10-24-2011 10:01 PM
10-24-2011 10:00 PM - edited 10-24-2011 10:01 PM
Re: Check process
>I tried it in my Unix-like system (eg. Redhat)
(This is a HP-UX category and that script is meant to work on a UNIX branded OS. If you want Linux answers post in a Linux category. If you want, we can ask this topic to be moved.)
>the output is a list of processes (as below) , these processes do not use 90% CPU, can advise how to use the script?
That was a debugging line that I should have left commented. I've updated that post.
>what I need to change if run it at Linux server?
Lower that 90 and see if you pick up some PIDs?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2011 05:35 AM
10-25-2011 05:35 AM
Re: Check process
@Intothenewworld wrote:I tried it in my unix-like system ( eg. Redhat ), the output is a list of processes ( as below ) , these processes do not use 90% CPU , can advise how to use the script ? what I need to chang if run it at linux server ?
Look at your Red Hat manpages for 'ps'; look at the thread Dennis suggested as a "starter"; and TRY to construct your own solution. Then, if/when you are stuck ask for help. You cannot expect every Unix variant (e.g. HP-UX, AIX, Solaris, Mac OS X) to have exactly the same semantics and syntax. The GNU toolsets which comprise the various Linux distributions are generally far richer in features. Learn to fish and you will never go hungry.
...JRF...
...JRF...