Re: mod_proxy: ProxyPass max parameter has no effect

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

 



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@xxxxxxxxx> 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@xxxxxxxx> wrote:
>>
>> Igor,
>>
>> On Tue, Jul 6, 2010 at 4:40 PM, Igor Cicimov <icicimov@xxxxxxxxx> 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@xxxxxxxxxxxxxxxx
>>   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
>> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>>
>
>



-- 
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux