[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Feedback needed on Apache increase MaxClients & HARD_SERVER_LIMIT on OpenBSD



Hi,

If I may asked your help is confirming, or correcting my finding and changes
that I need to do to my web server kind of quickly, I would very much
appreciate it.

I keep reaching the limits of the server and I need to increase this quickly
until I get more resources on line.

Just a few examples:

[Sun Oct 31 17:14:42 2004] [error] server reached MaxClients setting,
consider raising the MaxClients setting

[Sun Oct 31 17:28:44 2004] [error] server reached MaxClients setting,
consider raising the MaxClients setting

I already change what I could inside the httpd.conf and did all optimization
allow in apache itself under the current limit impose by OpenBSD.

Just for feedback, here are the relevant httpd.conf changes, but just for
informations as that's not where I hit the limit anyway, but it show I did
what I could I think:

======
Relevant lines in httpd.conf
MaxKeepAliveRequests 250
KeepAliveTimeout 5
MinSpareServers 25
MaxSpareServers 50
StartServers 40
MaxClients 250
MaxRequestsPerChild 10000

And the obvious, like no reverse lookup on connections, etc.

Looking on google and reading some source on OpenBSD, I see that OpenBSD
have it's own limits.

I found in my reading that the OpenBSD have HARD_SERVER_LIMIT in

src/include/httpd.h

and I may increase from 256 to may be 512 to address this issue.

Then I could have the httpd.conf support more connections after that.

I would be happy to double the capacity for now as I think that if it goes
to high, it may not be a good idea. But I would welcome feedback however.

SO, am I missing something else as well, or am I going to create more
problem then I try to solve right now?

Many thanks for your time.

Daniel