Server Overload Solution!

Discussion in 'Apache' started by ronskit, Oct 26, 2009.

  1. #1
    Respected members, i want to kill apache/http and restart it again automatically. i need this because sometime we are not in front of the server to fix an overload issue immediately, which can affect a server very badly. i believe many of us already face this kind of situation and hope there is some kind of script or way to do this.

    looking forward to get help from you :)
     
    ronskit, Oct 26, 2009 IP
  2. Luke Carrier

    Luke Carrier Peon

    Messages:
    19
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You could run 'service httpd restart' on a cron (crontab -e, then use a resource like this to help you write the line); but this is hardly optimal. You ought to look into what is causing the bottlenecks with Apache and solve it rather than work around issues. The optimisation section of this thread will probably help you :)
     
    Luke Carrier, Oct 26, 2009 IP