You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Marion McCoskey <mc...@gmail.com> on 2011/04/29 04:11:24 UTC

[users@httpd] MaxClients stuck at 10 bug

This is a follow-up on my previous post, server limit stuck at 10.

I gave a whole bunch of details about what I had done trying to cope
with this problem, and got one reply saying suggesting I do what the
error message said and set the server limit.  Since I had already
tried to do that multiple times before I posted to the list, I found
that a little disappointing.  Like most men, I hate to ask directions.
 I replied to the reply with detail, but got no response.  I also
found that a little disappointing.

I had a php site using prefork.c.  Most of the php code was generate
by a couple of perl scripts.  I modified consolidated the perl scripts
into one which generates all the pages of the site in html with only a
little editing of html files required so I could switch to the
worker.c module and be thread safe.

But I was still stuck at 64 users because I got this error message:

<<
WARNING: MaxClients (10) must be at least as large
 as ThreadsPerChild (64). Automatically
 increasing MaxClients to 64.
>>

So I downloaded source code and looked into it some.

It seems that the worker_pre_config in worker.c is erroneously setting
max clients to 10 for some reason having to do with whether
ThreadsPerChild has been set.

Then when set_max_clients runs, MaxClients is set to 64 instead of 3
times 64 where I want it to be.  I am paying for ram and bandwith that
can't use.

Is this a configuration problem or an Apache bug?

Marion

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] MaxClients stuck at 10 bug

Posted by Jeff Trawick <tr...@gmail.com>.
On Thu, Apr 28, 2011 at 10:11 PM, Marion McCoskey <mc...@gmail.com> wrote:
> This is a follow-up on my previous post, server limit stuck at 10.
>
> I gave a whole bunch of details about what I had done trying to cope
> with this problem, and got one reply saying suggesting I do what the
> error message said and set the server limit.  Since I had already
> tried to do that multiple times before I posted to the list, I found
> that a little disappointing.  Like most men, I hate to ask directions.
>  I replied to the reply with detail, but got no response.  I also
> found that a little disappointing.
>
> I had a php site using prefork.c.  Most of the php code was generate
> by a couple of perl scripts.  I modified consolidated the perl scripts
> into one which generates all the pages of the site in html with only a
> little editing of html files required so I could switch to the
> worker.c module and be thread safe.
>
> But I was still stuck at 64 users because I got this error message:
>
> <<
> WARNING: MaxClients (10) must be at least as large
>  as ThreadsPerChild (64). Automatically
>  increasing MaxClients to 64.
>>>
>
> So I downloaded source code and looked into it some.
>
> It seems that the worker_pre_config in worker.c is erroneously setting
> max clients to 10 for some reason having to do with whether
> ThreadsPerChild has been set.
>
> Then when set_max_clients runs, MaxClients is set to 64 instead of 3
> times 64 where I want it to be.  I am paying for ram and bandwith that
> can't use.
>
> Is this a configuration problem or an Apache bug?

One thing to note is that those warnings are issued and configuration
adjusted only if your configuration is inconsistent.  So it is
expected that a a configuration error is what triggered this.  Whether
or not the adjustments are proper for your config remains to be seen.

Beyond your config, which Eric asked about,which level of httpd is this?

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] MaxClients stuck at 10 bug

Posted by Eric Covener <co...@gmail.com>.
On Thu, Apr 28, 2011 at 10:11 PM, Marion McCoskey <mc...@gmail.com> wrote:

> Then when set_max_clients runs, MaxClients is set to 64 instead of 3
> times 64 where I want it to be.  I am paying for ram and bandwith that
> can't use.
>
> Is this a configuration problem or an Apache bug?


What's your verbatim configuration?

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org