Apache2 becomes unresponsive & idle?

Discussion in 'Apache' started by gford, Apr 25, 2008.

  1. #1
    Hello All,

    I have a dedicated server running LAMP and every once in a while (2-3 times a week) apache2 just seems to stop working. The only solution I have is to do a restart.

    Does anyone know why this would happen and a possible solution?

    Thanks in advance!
     
    gford, Apr 25, 2008 IP
  2. Cybernaut

    Cybernaut Peon

    Messages:
    408
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #2
    There is a setting in apache "MaxClients" that limits the number of maximum clients connected or open connections to apache. If you apache reaches this limit, it may stop responding. If that is the case with your webserver, then you can either check why you are having this many open connections simultaneously (clients not closing connections, ddos attacks, hanging perl/php scripts etc, view apache status page to check which pages are open for long time or a few IP's using all the connections) or increase that limit (MaxClients and ServerLimit).
     
    Cybernaut, Apr 26, 2008 IP
  3. gford

    gford Peon

    Messages:
    1,188
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks, that helps me understand. Is there a way to force a connection to close / timeout eventually?
     
    gford, Apr 28, 2008 IP