Need to restart Apache once per day

Discussion in 'Apache' started by lappy512, Apr 25, 2006.

  1. #1
    I have an apache2 server that has a configuration of maxclients of 150, but every day or so it crashes because a slot begins to crash and then never become available again, and then all the server processes begin to clog up, and then I need to restart Apache once in a while. Does anyone know how to stop this from happening?
     
    lappy512, Apr 25, 2006 IP
  2. Dekker

    Dekker Peon

    Messages:
    4,185
    Likes Received:
    287
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What kind of server are you running on?
     
    Dekker, Apr 25, 2006 IP
  3. exam

    exam Peon

    Messages:
    2,434
    Likes Received:
    120
    Best Answers:
    0
    Trophy Points:
    0
    #3
    If you are running Apache2 on Windows, Apache states that it's not production ready. You'd probably be better off running 1.3, whatever your OS. If you still want to just restart Apache, schedule it with cron or at (Windows)
     
    exam, Apr 25, 2006 IP
  4. lappy512

    lappy512 Peon

    Messages:
    277
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Apache2 on Linux with PHP4.3.11.

    Apache 2 should be fairly stable, and the main reason I used Apache2 was because I heard it was threaded, so worked better with the processor I was using (P4 HT)
     
    lappy512, Apr 25, 2006 IP
  5. theblight

    theblight Peon

    Messages:
    246
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Check your web applications and look closely on to the codes. May be some are loosely coded.
     
    theblight, Apr 28, 2006 IP
  6. lappy512

    lappy512 Peon

    Messages:
    277
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Yeah, PHProxy is probably loosely coded. Oh well, I setup a cron job to restart apache hourly. Works well, even though it is kinda crude.
     
    lappy512, May 1, 2006 IP
  7. theblight

    theblight Peon

    Messages:
    246
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #7
    hope that there are no site visitor that would be affected by the restart...;) ..anyway good luck!
     
    theblight, May 1, 2006 IP
  8. concord

    concord Guest

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    typically, it should not be happening. you may want to make sure your apache was compiled correctly or your configuration set up.
     
    concord, May 7, 2006 IP
  9. lappy512

    lappy512 Peon

    Messages:
    277
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #9
    It's PHProxy, I guess, since I saw a Proxy site sale saying the owner modified it so it doesn't do that.
     
    lappy512, May 7, 2006 IP