1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice

7.5.3 apache random crashing

Discussion in 'Plesk for Linux - 8.x and Older' started by Naughty, Aug 25, 2005.

  1. Naughty

    Naughty Guest

    0
     
    Since begin this week, apache is randomly crashing. Weird thing is, cant find anything in any log file.

    Even Sim say that apache was up during the time it was down!
    Well, meaby it its up, but no page can be reached.

    Anyone else an idea what i can check?
     
  2. jamesyeeoc

    jamesyeeoc Guest

    0
     
    If Apache is really running and sites cannot be accessed, I would then look at if you have any bandwidth limiting installed (bw_mod, mod_throttle, etc) or things like dosevasive. It may be something like those are kicking in and limiting connections either from too low a threshold or from an actual attack (like a flood).

    You said 'since begin this week' it began. Was there anything changed, installed or updated at the beginning of the week?
     
  3. Naughty

    Naughty Guest

    0
     
    update to Plesk 7.5.3 :x
     
  4. jamesyeeoc

    jamesyeeoc Guest

    0
     
    Have you specifically checked the following logs:

    /home/httpd/vhosts/yourdomain.com/statistics/logs/error_log
    /home/httpd/vhosts/yourdomain.com/statistics/logs/access_log

    /var/log/httpd/error_log
    /var/log/httpd/access_log

    and

    /var/log/messages
     
  5. Naughty

    Naughty Guest

    0
     
    i did check em out before and did again now but still cant find anything special in any of them

    only thing what i think it can be:
    - buggy frontpage extentions, because i see a try to reach some map in the logs just before it crashes
    or
    - some guy is hosting maps and stuff for his counter-strike server and to many request on new maps at map change

    or something like that


    httpd.conf:
    i dont know **** about prefork.c and worker.c but shoudnt max clients be at last more then 100? (150 or 300)
     
  6. jamesyeeoc

    jamesyeeoc Guest

    0
     
    I would certainly think so.

    I would bump these values up:

    <IfModule prefork.c>
    StartServers 2
    MinSpareServers 1
    MaxSpareServers 5
    MaxClients 10

    <IfModule worker.c>
    StartServers 2
    MaxClients 10
    MinSpareThreads 1
    MaxSpareThreads 4

    By how much depends on many things. Hopefully your server is not underpowered (CPU, RAM, etc), is this server 'busy' or 'light' load?
     
  7. Naughty

    Naughty Guest

    0
     
    what settings do u advise?
     
  8. jamesyeeoc

    jamesyeeoc Guest

    0
     
    Start with this, but you may still have to make additional adjustments (remember to restart apache/httpd after saving changes):

    <IfModule prefork.c>
    StartServers 8
    MinSpareServers 5
    MaxSpareServers 20
    MaxClients 150
    MaxRequestsPerChild 1000
    </IfModule>

    <IfModule worker.c>
    StartServers 4
    MaxClients 150
    MinSpareThreads 25
    MaxSpareThreads 75
    ThreadsPerChild 25
    MaxRequestsPerChild 0
    </IfModule>
     
  9. Naughty

    Naughty Guest

    0
     
    ok, thanx, gona try this
     
Loading...