PDA

View Full Version : MaxClients of 2000 exceeds ServerLimit?


edge
25th June 2006, 10:57
Today I got this in my root email, and I'm not sure if it's a problem or not.


Subject: Cron <root@host> test -x /usr/sbin/anacron || run-parts --report /etc/cron.daily

/etc/cron.daily/logrotate:
WARNING: MaxClients of 2000 exceeds ServerLimit value of 256 servers,
lowering MaxClients to 256. To increase, please see the ServerLimit
directive.
WARNING: MaxClients of 2000 exceeds ServerLimit value of 256 servers,
lowering MaxClients to 256. To increase, please see the ServerLimit
directive.

OS is Debian Sarge 3.1

falko
26th June 2006, 12:11
What's the value of MaxClients in your Apache configuration? Set it to 256 and restart Apache.

edge
27th June 2006, 11:06
Hi falko,

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


<IfModule prefork.c>
StartServer 50
MinSpareServer 50
MaxSpareServer 200
MaxClients 2000
MaxRequestsPerChild 1
</IfModule>


I also have:


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

falko
28th June 2006, 10:45
This one is the right one:

<IfModule prefork.c>
StartServer 50
MinSpareServer 50
MaxSpareServer 200
MaxClients 2000
MaxRequestsPerChild 1
</IfModule>

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: http://www.howtoforge.com/configuring_apache_for_maximum_performance

fahmie
9th December 2008, 17:39
hi..im 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.

cheers,
Mie

falko
10th December 2008, 15:04
This link might help you: http://www.howtoforge.com/configuring_apache_for_maximum_performance