Restart debian server if one specific process has more than 10 seconds have high cpu load | Unix Linux Forums | Shell Programming and Scripting

  Go Back    


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

Restart debian server if one specific process has more than 10 seconds have high cpu load

Shell Programming and Scripting


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 01-06-2013
woisch woisch is offline
Registered User
 
Join Date: Jan 2013
Last Activity: 8 January 2013, 5:06 AM EST
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Restart debian server if one specific process has more than 10 seconds have high cpu load

Hi,

could someone give me an example for a debian server script? I need to check a process if the process has a high cpu load (top).
If yes the whole server needs to reboot.

Thats it, nothing more.
Hope someone could help me.

Regards
woisch
Sponsored Links
    #2  
Old 01-06-2013
Jotne's Avatar
Jotne Jotne is offline
Registered User
 
Join Date: Dec 2010
Last Activity: 22 August 2014, 7:56 AM EDT
Posts: 1,040
Thanks: 62
Thanked 216 Times in 204 Posts
It would be better to find the root cause to the problem and fix it, instead of reboot the whole server. If needed, restart only the process.
Sponsored Links
    #3  
Old 01-06-2013
woisch woisch is offline
Registered User
 
Join Date: Jan 2013
Last Activity: 8 January 2013, 5:06 AM EST
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks Jotne.

I try to find why but for now this is my only solution for this. Also a process restart did not work. Don`t know why.

So could you please help me with this by now since i found a solution why the process got so high?

Regards
woisch
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
apache high cpu load on high traffic awww Red Hat 4 10-01-2011 04:56 PM
script to check high cpu utilization for java process coolguyamy Shell Programming and Scripting 1 12-11-2010 12:28 PM
High CPU utilization by a pro*C process mugunthanvh AIX 6 03-31-2010 11:23 AM
High cpu load average squid04 Red Hat 2 09-27-2006 08:07 AM
Application high CPU load Frank2004 AIX 0 04-20-2005 10:41 PM



All times are GMT -4. The time now is 09:21 AM.