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 hanging up

Discussion in 'Apache' started by jjj0923, Nov 14, 2012.

  1. #1
    I'm running apache /2.2.3 (centos) on a pretty busy for a forum (vbulletin) and it seems to get hung up once in a while.

    I'm have extended status on so I can take a look at the server status and today I found once it was hung up:
    3 requests currently being processed and 13 idle workers

    when I looked at the status listing I found about 300 of these: www.mysite.com OPTIONS * HTTP/1.0

    but no ip address just ::1 on the line

    any ideas as to what's going on?

    thanks in advance.


    here are some basics:

    ServerTokens OS
    ServerRoot "/etc/httpd"
    PidFile run/httpd.pid
    Timeout 600
    KeepAlive On
    MaxKeepAliveRequests 50
    KeepAliveTimeout 2


    ProxyRequests Off


    StartServers 200
    MinSpareServers 10
    ServerLimit 1000
    MaxClients 300
    MaxRequestsPerChild 500




    <IfModule prefork.c>
    #StartServers 8
    StartServers 200
    MinSpareServers 10
    ServerLimit 1000
    MaxClients 300
    MaxRequestsPerChild 500
    </IfModule>




    <IfModule worker.c>
    StartServers 200
    MaxClients 1000
    MinSpareServers 10
    MinSpareThreads 10
    MaxSpareThreads 200
    ThreadsPerChild 100
    MaxRequestsPerChild 0
    </IfModule>
     
    jjj0923, Nov 14, 2012 IP
  2. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #2
    Hello there,

    You are going to have to look at the logs to find out what is causing the issue. It may be MySQL and not the web server itself.

    Regards,
    Chris
     
    RHS-Chris, Nov 14, 2012 IP
  3. wetbupa

    wetbupa Peon

    Messages:
    119
    Likes Received:
    2
    Best Answers:
    1
    Trophy Points:
    0
    #3
    In my opinion, the prefork setting are incorrect. The configuration should be the following:

    StartServers 5
    <IfModule prefork.c>
    MinSpareServers 5
    MaxSpareServers 10
    </IfModule>
    ServerLimit 256
    MaxClients 256
    MaxRequestsPerChild 10000
    KeepAlive Off
    KeepAliveTimeout 5
    MaxKeepAliveRequests 100

    Aapache.jpg
     
    wetbupa, Nov 16, 2012 IP
  4. Riseservers

    Riseservers Greenhorn

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    6
    #4
    Try checking your apache error logs , they help alots .
     
    Riseservers, Nov 21, 2012 IP
  5. blockdos

    blockdos Active Member

    Messages:
    96
    Likes Received:
    0
    Best Answers:
    3
    Trophy Points:
    71
    #5
    yes the prefork settings are way overkill

    And you need to drop the worker config. you need to use one or the other
     
    blockdos, Nov 21, 2012 IP