Skip to main content

Apache configuration for busy site

Comments

6 comments

  • kodeslogic
    You'll have to adjust Server Limit & Max Request workers for your server to handle the connections. Gradually increase these values till the issue is resolved.
    0
  • quietFinn
    I am not sure why this is done but if they are different which one will it use for its configuration?

    It will use the settings you have in Pre VirtualHost Include.
    0
  • cPanelWilliam
    Hello! [QUOTE]I am trying to configure my site to be able to handle more traffic because it bogs down when I get about 150 concurrent users.
    It sounds like you could be encountering the MaxRequestWorkers limit, as the default value for this is 150. As @kodeslogic stated, you would likely need to increase both the MaxRequestWorkers and ServerLimit since MaxRequestWorkers cannot exceed the ServerLimit. We have more information about Apache tuning in the following support article:
    0
  • tagteam
    yes, I have updated my apache config to IfModule mpm_event_module> StartServers 10 ServerLimit 65 ThreadsPerChild 300 MaxRequestWorkers 15000 MinSpareThreads 150 MaxSpareThreads 250 MaxConnectionsPerChild 15000 hopefully this will make it run better when it gets busy However, I still have not found a way to verify which config it is using. I have checkec httpd -V and it says -D SERVER_CONFIG_FILE="conf/httpd.conf" but the Pre main and the pre Virtual are both added via include in that httpd.conf file.
    0
  • kodeslogic
    ServerLimit should be greater than or equal to MaxRequestWorkers value.
    0
  • tagteam
    I am using mod event, not prefork, so ServerLimit * ThreadLimit should determine the maximum value for MaxRequestWorkers if I am not mistaken.
    0

Please sign in to leave a comment.