View Single Post
  #1  
Old 14th August 2006, 16:59
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,033
Thanks: 260
Thanked 145 Times in 127 Posts
Default server reached MaxClient settings, consider raising the MaxClients setting

My Apache2 sometimes gets really slow..

Looking at the log file it's showing server reached MaxClient settings, consider raising the MaxClients setting at the times apache is slow, so I guess that this is causing the slowdown.

After some googling I found this.

The problem now is that I do not have MaxClients in the /etc/apache2/httpd.conf , but I do have it in /etc/apache2/apache2.conf

In apache2.conf I have to times a MaxClients!

Code:
<IfModule prefork.c>
StartServers 50
MinSpareServers 50
MaxSpareServers 200
MaxClients 256
MaxRequestsPerChild 1
</IfModule>

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

Do I need to set both MaxClients, or do I need to add a MaxClients to the httpd.conf?

Also. The server (Debain Sarge 3.1) has 4GB of memory.. Will a MacClients of lets say 1000 be okay?

Last edited by edge; 14th August 2006 at 17:19.
Reply With Quote
Sponsored Links