var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
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?
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: http://www.webhostingtalk.com/showth...hreadid=389191
Last edited by nick252; 03-28-2005 at 12:47 PM.
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..
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