MaxClients of 2000 exceeds ServerLimit?

Discussion in 'Server Operation' started by edge, Jun 25, 2006.

  1. edge

    edge Active Member Moderator

    Today I got this in my root email, and I'm not sure if it's a problem or not.

    OS is Debian Sarge 3.1
  2. falko

    falko Super Moderator ISPConfig Developer

    What's the value of MaxClients in your Apache configuration? Set it to 256 and restart Apache.
  3. edge

    edge Active Member Moderator

    Hi falko,

    If you are talking about the apache2.conf in /etc/apache2 (Debian Sarge)
    than I have this set for MaxClients

    I also have:

  4. falko

    falko Super Moderator ISPConfig Developer

    This one is the right one:

    <IfModule prefork.c>
    StartServer 50
    MinSpareServer 50
    MaxSpareServer 200
    MaxClients 2000
    MaxRequestsPerChild 1
    Either set MaxClients to 256 (or lower), or add
    ServerLimit 2000
    to the code above. But I doubt that you need such a high value, and probably your server will go down if you ever reach it because you don't have enough memory...
    Also check out this tutorial:
  5. fahmie

    fahmie New Member not sure im in the right thread, but im sure u guys can help me with my settings.

    currently i have two webserver (load balancing) each with 16GB of RAM. Each server configured with 8 Virtual IPs. One Virt IP will host 20 websites.So total of 160 websites per server, with both servers configured the same. This is my 1st tier.

    My 2nd tier is running on JBOSS App. Im using Apache 2.2.9 with prefork. This is my latest configuration.

    StartServers 8
    MinSpareServers 5
    MaxSpareServers 20
    ServerLimit 256
    MaxClients 256
    MaxRequestsPerChild 4000

    We projecting around 100 users per website, so 20 websites x 100 users = 2000 users per apache instance.

    I dont think this is the best value, and highly appreciate any suggestions from u guys.

  6. falko

    falko Super Moderator ISPConfig Developer

Share This Page