Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 25th June 2006, 09:57
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,033
Thanks: 260
Thanked 145 Times in 127 Posts
Default 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
Reply With Quote
Sponsored Links
  #2  
Old 26th June 2006, 11:11
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

What's the value of MaxClients in your Apache configuration? Set it to 256 and restart Apache.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 27th June 2006, 10:06
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,033
Thanks: 260
Thanked 145 Times in 127 Posts
Default

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>
Reply With Quote
  #4  
Old 28th June 2006, 09:45
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

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
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 9th December 2008, 16:39
fahmie fahmie is offline
Junior Member
 
Join Date: Dec 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
Reply With Quote
  #6  
Old 10th December 2008, 14:04
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
 
Default

This link might help you: http://www.howtoforge.com/configurin...um_performance
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 13:31.


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