1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Apache server crashes under low traffic

Discussion in 'Apache' started by kmccarth1, Sep 12, 2008.

  1. #1
    Hello all,

    Over the last two months, our Apache server has crashed twice. Our server company says that nothing is wrong with the server, but believe that a runaway PHP script is causing the issue. Normally, I take them at their word, but recently they have been attempting to sell us a new server package.

    My question for the group is: Are there any other causes for Apache-server crashing in the method that it does for us? Any help is appreciated.
     
    kmccarth1, Sep 12, 2008 IP
  2. The Universes

    The Universes Peon

    Messages:
    187
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Best thing to do is to check the access and error logs after it crashes.
     
    The Universes, Sep 14, 2008 IP
  3. Crux

    Crux Well-Known Member

    Messages:
    704
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    130
    #3
    hi. allow me to use your thread.

    i am using cpanel.

    where was supposed to be log files?

    All i can see is empty logs on /var/log/httpd

    should that be it?

    or ill cpanel log them somewhere elese?

    Best Regards
     
    Crux, Sep 15, 2008 IP
  4. nimhost

    nimhost Active Member

    Messages:
    235
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #4
    for apache error log you can take a look it on /usr/local/apache/logs/error_log for access log at /usr/local/apache/logs/access_log for suexec log at /usr/local/apache/logs/suexec_log

    anything more ?
     
    nimhost, Sep 15, 2008 IP
  5. happpy

    happpy Well-Known Member

    Messages:
    926
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    120
    #5
    i can provide you guys with a emergency-system for apache, which restarts apache in case it crashes,hangs,takes forever... PM me.
     
    happpy, Sep 15, 2008 IP
  6. oc-scott

    oc-scott Active Member

    Messages:
    420
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    68
    #6
    Band-aid is good for temporary fix, but you should analyze the exact reason behind the apache crash and fix it. If you need free assistance regarding this, please contact us via MSN/Yahoo (given here) and we can assist you further.
     
    oc-scott, Sep 16, 2008 IP
  7. Crux

    Crux Well-Known Member

    Messages:
    704
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    130
    #7
    happy, Is that a sales post? Or is it any free software? could you provide us the link?

    Is it PRM?
     
    Crux, Sep 23, 2008 IP
  8. imagize

    imagize Peon

    Messages:
    48
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Are you using the worker or prefork mpm? some php extensions are not thread safe and can cause this.

    What is your config value for maxrequestsperchild?

    For stability with php applications I recommend prefork mpm.

    What maxrequestsperchild (with preforkm mpm) does is recycle an apache process after a certain amount of requests to ensure memory leakage doesn't get out of hand. Some may argue that this burden's apache but from I have found recycling the processes instead of letting them run indefinitely leads to more stability. Some people have maxrequestsperchild set to 0 but I tend to have it set to 1000-2000 on my servers.

    The apache docs are great if you need a detailed explanation.
     
    imagize, Sep 23, 2008 IP
  9. happpy

    happpy Well-Known Member

    Messages:
    926
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    120
    #9
    its a script i wrote for my own personal use.
    i am willing to give it away and adapt it to your needs,

    sure not for free - it´s digitalpoint


    in my case the reason was too much traffic on a too weak system. the crash fix would either be a better server or running my little workaround script.

    ofcourse i chose the latter, as my site is not mission-critical but hightraffic.
     
    happpy, Sep 23, 2008 IP
  10. jacobkell

    jacobkell Well-Known Member

    Messages:
    830
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    128
    #10
    There is also sim which is free and doing same thing.
     
    jacobkell, Sep 24, 2008 IP