- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to detect Process wit high cpu during n second...
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
тАО12-08-2008 05:46 AM
тАО12-08-2008 05:46 AM
I'd like to find and kill systematically all processes with cpu > 80% during 60 seconds. Is it possible ?
Bests Regards
Den
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2008 06:47 AM
тАО12-08-2008 06:47 AM
Re: How to detect Process wit high cpu during n seconds
Yes, its possible,
But.... later you may end-up in killing the system important processes with cpu > 80%
well , your goal should find out which process uses more cpu usage, than dig in to the issue , deeper
Thanks,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2008 07:22 AM
тАО12-08-2008 07:22 AM
Re: How to detect Process wit high cpu during n seconds
My need is to kill one process over 80% if this process take that during n secondes. It's my request and investigation is not here the purpose.
Regards
Den
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2008 07:33 AM
тАО12-08-2008 07:33 AM
Re: How to detect Process wit high cpu during n seconds
are you looking to kill processes which have been > 80% for more than 60 seconds, or processes > 80% within a 60 second period?
in either case, unintended results are likely, which could render the system unusable without a reboot.
this is a *very* *bad* idea
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2008 07:50 AM
тАО12-08-2008 07:50 AM
Re: How to detect Process wit high cpu during n seconds
"....
are you looking to kill processes which have been > 80% for more than 60 seconds, or processes > 80% within a 60 second period?
..."
To be exact, 80% cpu usage more than 60 seconds.
But I could do script and crontab (every 5 minutes) doing this:
Find a process over 80%
if no => END.
if yes=> start a 60 seconds loop with a check at every 5 seconds. if all checks within this loop are positives (The same process always over 80%)I could kill it.
Bests regards
Den
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2008 07:52 AM
тАО12-08-2008 07:52 AM
Re: How to detect Process wit high cpu during n seconds
Den.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2008 07:57 AM
тАО12-08-2008 07:57 AM
SolutionI guess you are aware to be selective about which process to kill based on user owner etc.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-08-2008 10:49 AM
тАО12-08-2008 10:49 AM
Re: How to detect Process wit high cpu during n seconds
Bests Regards
Den.