apache prefork config

Discussion in 'Apache' started by alin19, Nov 17, 2008.

  1. #1
    I hava a webserver and from a week ago as my register client numeber start rising it start working slowly

    and i have tryed to find a reason for this
    my webserver stands on 4 gb ram memory and 2 xeon 2.33

    used memory is abouth 2 GB and processors bearly reach 20 %

    i have made a script that counts running httpd services and it can't pass 259

    and i think there is a problem with my MPM configuration

    :
    <IfModule prefork.c>
    StartServers 5
    MinSpareServers 5
    MaxSpareServers 10
    MaxClients 150 change it to 200
    MaxRequestsPerChild 0
    </IfModule>

    and still having the same problem, do i have to change MinSpareServ, MaxSpareServ, and MaxRequestsPerChild?
     
    alin19, Nov 17, 2008 IP
  2. hans

    hans Well-Known Member

    Messages:
    2,923
    Likes Received:
    126
    Best Answers:
    1
    Trophy Points:
    173
    #2
    most likely the essential error above is your

    MaxRequestsPerChild 10000
    10000 seems to be default value

    all else is similar to mine and I have coparable load to u and zero problem s

    I have im my
    <IfModule prefork.c>
    StartServers 20
    MinSpareServers 10
    MaxSpareServers 20
    ServerLimit 150
    MaxClients 150
    MaxRequestsPerChild 10000
    </IfModule>

    i have approx 500'000-700'000 hits per day = approx 10+ GB / day with aove and am FAR from any server/CPU/RAM limits even if during peak hours my traffic is multiple from average!

    I am sure your "MaxRequestsPerChild 0" is an error of copy / paste during the setup some time ago
     
    hans, Nov 18, 2008 IP
  3. yajur

    yajur Banned

    Messages:
    193
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    can u give the output of top in ur server
     
    yajur, Nov 25, 2008 IP
  4. yajur

    yajur Banned

    Messages:
    193
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    forget to ask in httpd.conf keep alive is on or off?
     
    yajur, Nov 25, 2008 IP