httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alessandro Vernet <aver...@scdi.org>
Subject Re: [users@httpd] mod_proxy: ProxyPass max parameter has no effect
Date Wed, 14 Jul 2010 00:42:45 GMT
Igor,

I am running Apache 2.2.14. Re-reading the documentation for "max", I see:

The default for a Hard Maximum for the number of connections is the
number of threads per process in the active MPM. In the Prefork MPM,
this is always 1, while with the Worker MPM it is controlled by the
ThreadsPerChild.

So the default of max in prefork MPM is 1, which doesn't make any
sense unless you understand this as "1 per Apache process". So maybe
with prefork, the value of max is per process. Since my understanding
is that in prefork there each concurrent request is handled by a
different process, that max parameter would be useless in prefork MPM.
(Hopefully my understanding is not correct!)

Alex

On Fri, Jul 9, 2010 at 5:10 PM, Igor Cicimov <icicimov@gmail.com> wrote:
> Hmmmm I had to read the documentation again my self and I can't find any
> mention of what type of MPM is supported in this case. All it says is
> "Apache will never create more than the Hard Maximum connections to the
> backend server" so it makes me expect that max parameter should be in force
> no matter what MPM is in use. But having in mind Eric's comment looks like
> this is not communicated across different processes and since every thread
> is a new process in MPM prefork the max setting will fail.
>
> What version of apache do you use? If it is apache2 would it be too much
> trouble for you to recompile with MPM worker instead prefork?
> Cheers,
> Igor
>
> On Sat, Jul 10, 2010 at 9:49 AM, Alessandro Vernet <avernet@scdi.org> wrote:
>>
>> Igor,
>>
>> On Tue, Jul 6, 2010 at 4:40 PM, Igor Cicimov <icicimov@gmail.com> wrote:
>> > Shouldnt it be smax instead max?
>>
>> From the documentation, I gather that the default value of smax is
>> max, so just setting max should be safe. Just in case, I tried setting
>> smax, and it doesn't make a difference. Both max and smax seem to have
>> no effect with prefork MPM.
>>
>> Does this mean that max/smax can't be used with prefork MPM? If that
>> is the case, is there any other way to do this in prefork MPM?
>>
>> Alex
>> --
>> Orbeon Forms - Web forms, open-source, for the Enterprise -
>> http://www.orbeon.com/
>> My Twitter: http://twitter.com/avernet
>>
>> ---------------------------------------------------------------------
>> 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
>>
>
>



-- 
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet

---------------------------------------------------------------------
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


Mime
View raw message