hosted by liquidweb

Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : restart pache when load goes to 10?

Forum Jump

restart pache when load goes to 10?

Reply Post New Thread In Programming Discussion Subscription
Send news tip View All Posts Thread Tools Search this Thread Display Modes
Web Hosting Guru
Join Date: May 2004
Location: UK and Greece
Posts: 337

restart pache when load goes to 10?


Does anyone knows a way to add a script in the cronjob that will restart apache as soon as the load reach the 10?


Sponsored Links
Join Date: Mar 2005
Posts: 11
CPU load reaches 10% ?

If this is being caused by user downloads, you might be better off trying to implement mod_throttle or mod_bwshare.

Also check out the 4th post down in this thread:

Last edited by nick252; 03-28-2005 at 12:47 PM.
Junior Guru Wannabe
Join Date: Mar 2004
Location: Poland, Lublin
Posts: 71
make shell script like in php..
script should do this steps:

1. take current load (#uptime) and parse it
2. if >10, then run restarting script.. and log it
3. else .. nothing to do

and add to cronjobs for every 15mins.. or 10mins.. or 5mins..

Sponsored Links
Web Hosting Evangelist
Join Date: Oct 2004
Location: UK
Posts: 487
What does "#uptime" have to do with the current CPU load?

I know the basics of a script, but I don't know the exact script to get the CPU load from the server


Related posts from
Title Type Date Posted
Four Million Domain Names Added to Internet in Q4 2014: VeriSign Report Web Hosting News 2015-03-13 12:31:24
Weekend Issue with Twitter Link Shorteners Connected to .CO Domain: Report Web Hosting News 2015-01-26 15:34:25
Rackspace Launches Automatic Cloud Scaling Capabilities Web Hosting News 2013-11-21 12:07:13
Amazon Web Services Northern Virginia Outage Rocks Instagram, Vine Web Hosting News 2013-08-26 14:33:03
LeaseWeb Adds Load Balancing Service to Public Cloud Web Hosting News 2013-08-07 10:35:22

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Log in with your username and password

Forgot Password?
WHT Host Brief Email:

We respect your privacy. We will never sell, rent, or give away your address to any outside party, ever.

Web Hosting News:
WHT Membership
WHT Membership



Welcome to

Create your username to jump into the discussion! is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.

(4 digit year)

Already a member?