httpd - server reached MaxClients setting

toolz

Verified User
Joined
Apr 9, 2008
Messages
21
[Tue Mar 16 16:32:48 2010] [error] server reached MaxClients setting, consider raising the MaxClients setting

There is no maxclients setting in:

/etc/httpd/conf/httpd.conf


But, in:
/usr/local/etc/apache2/httpd.conf

I have:
Code:
<IfModule prefork.c>
StartServers         5
MinSpareServers      5
MaxSpareServers     10
MaxClients         150
MaxRequestsPerChild  0
</IfModule>

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

Code:
<IfModule beos.c>
StartThreads               10
MaxClients                 50
MaxRequestsPerThread       10000
</IfModule>

Later edit:

I found out that
/etc/httpd/conf/extra/httpd-mpm.conf
should be corrcted, but, no matter how I modify maxlicents and serverlimit my load averages go so high and machine starts to load slow and the number of processes is the maximum. I guess someone is flooding my apache.



Anyway which is the original httpd.conf apache uses on directadmin installation?

And how do I solve this issue? My sites are not accessible.

Thanks.
 
Last edited:
Back
Top