HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   MaxClients of 2000 exceeds ServerLimit? (http://www.howtoforge.com/forums/showthread.php?t=5137)

edge 25th June 2006 09:57

MaxClients of 2000 exceeds ServerLimit?
 
Today I got this in my root email, and I'm not sure if it's a problem or not.

Quote:

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 11:11

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

edge 27th June 2006 10:06

Hi falko,

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

Quote:

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

Quote:

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

falko 28th June 2006 09:45

This one is the right one:

Code:

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

Either set MaxClients to 256 (or lower), or add
Code:

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/configurin...um_performance

fahmie 9th December 2008 16: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 14:04

This link might help you: http://www.howtoforge.com/configurin...um_performance


All times are GMT +2. The time now is 14:25.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.