Apache Shuts Down

Discussion in 'Apache' started by amanpeet, Aug 12, 2007.

  1. #1
    I am hosting my websites on jaguarpc.com. I am using a VPS hosting. Everything is fine but the only problem arises when there is high traffic.

    Due to high traffic Apache shuts down. Is there any way that apache can be restarted automatically when it shuts down. Sometime I am at a place where I may not be able to access apache manually. So if it restarts itself after a few hours my problem may be solved.

    Please suggest any way to do that.
     
    amanpeet, Aug 12, 2007 IP
  2. powerspike

    powerspike Peon

    Messages:
    312
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #2
    apache shouldn't be shuting down under high load,

    you might want to check to see if the system (the server) is killing the processes automaticly due to low ram (this is semi common), it is generaly better to the fix the problem then work around the sympton.
     
    powerspike, Aug 12, 2007 IP
  3. amanpeet

    amanpeet Peon

    Messages:
    94
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for the suggestion.
    Yeah that might be it. That used to happen in the beginning but was solved at that time.
     
    amanpeet, Aug 13, 2007 IP
  4. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Are you hitting max ram usage or apache max process limit due to heavy traffic?

    As for the routine restart of apache, you've to do it through a cron job.
     
    agnivo007, Aug 13, 2007 IP
  5. amanpeet

    amanpeet Peon

    Messages:
    94
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    The response from the help center that my websites hits limit was crossing which they increased. But it happens on Saturday mostly.

    Can you please explain how to do it via cron job?
     
    amanpeet, Aug 13, 2007 IP