Apache2::SizeLimit for threaded MPM"s

Apache2::SizeLimit for threaded MPM"s

am 30.12.2010 18:50:49 von Mark Copper

Hi,

Do the the Apache2::SizeLimit modules released this year support threaded MPM's?

I can't see what version is installed under Debian Lenny mod_perl2,
but I imagine it's .91. At any rate the installed docs contain the
caveat against threaded MPM's which seems to have been removed, but I
don't see anything about it in the CPAN module changes file.

Thanks.

Mark Copper

Re: Apache2::SizeLimit for threaded MPM"s

am 30.12.2010 22:07:04 von Fred Moyer

On Thu, Dec 30, 2010 at 9:50 AM, Mark Copper wrote=
:
>
> Do the the Apache2::SizeLimit modules released this year support threaded=
MPM's?

From lib/Apache2/SizeLimit.pm:

31 die "Apache2::SizeLimit at the moment works only with non-threaded MPMs=
"
32 if Apache2::MPM->is_threaded();

Threaded MPMs make life more difficult here. You want to eliminate
the particular interpreter that exceeds the specified size, but does
that mean you just kill the thread which the interpreter is in, or do
you restart the entire httpd process? There is also multiplicity to
consider, which if I recall correctly is multiple interpreters per
thread.

>
> I can't see what version is installed under Debian Lenny mod_perl2,
> but I imagine it's .91. =A0At any rate the installed docs contain the
> caveat against threaded MPM's which seems to have been removed, but I
> don't see anything about it in the CPAN module changes file.
>
> Thanks.
>
> Mark Copper
>

Re: Apache2::SizeLimit for threaded MPM"s

am 30.12.2010 22:27:04 von Mark Copper

I should have searched the source file for that "die" command myself.

Sorry for the noise; thanks for the gentle reply.

MC

On Thu, Dec 30, 2010 at 3:07 PM, Fred Moyer wrote:
> On Thu, Dec 30, 2010 at 9:50 AM, Mark Copper wro=
te:
>>
>> Do the the Apache2::SizeLimit modules released this year support threade=
d MPM's?
>
> From lib/Apache2/SizeLimit.pm:
>
> =A031 die "Apache2::SizeLimit at the moment works only with non-threaded =
MPMs"
> =A032 =A0 =A0 if Apache2::MPM->is_threaded();
>
> Threaded MPMs make life more difficult here. =A0You want to eliminate
> the particular interpreter that exceeds the specified size, but does
> that mean you just kill the thread which the interpreter is in, or do
> you restart the entire httpd process? =A0There is also multiplicity to
> consider, which if I recall correctly is multiple interpreters per
> thread.
>
>>
>> I can't see what version is installed under Debian Lenny mod_perl2,
>> but I imagine it's .91. =A0At any rate the installed docs contain the
>> caveat against threaded MPM's which seems to have been removed, but I
>> don't see anything about it in the CPAN module changes file.
>>
>> Thanks.
>>
>> Mark Copper
>>
>

Re: Apache2::SizeLimit for threaded MPM"s

am 30.12.2010 22:37:56 von Fred Moyer

On Thu, Dec 30, 2010 at 1:27 PM, Mark Copper wrote=
:
>
> Sorry for the noise; thanks for the gentle reply.

No worries; I looked in the Changes file first before diving into the sourc=
e.

There's a release candidate available for 0.94 if you want to download
the source and take it for a spin on your setup:

http://people.apache.org/~phred/Apache-SizeLimit-0.94-rc1.ta r.gz

>
> MC
>
> On Thu, Dec 30, 2010 at 3:07 PM, Fred Moyer wrot=
e:
>> On Thu, Dec 30, 2010 at 9:50 AM, Mark Copper wr=
ote:
>>>
>>> Do the the Apache2::SizeLimit modules released this year support thread=
ed MPM's?
>>
>> From lib/Apache2/SizeLimit.pm:
>>
>> =A031 die "Apache2::SizeLimit at the moment works only with non-threaded=
MPMs"
>> =A032 =A0 =A0 if Apache2::MPM->is_threaded();
>>
>> Threaded MPMs make life more difficult here. =A0You want to eliminate
>> the particular interpreter that exceeds the specified size, but does
>> that mean you just kill the thread which the interpreter is in, or do
>> you restart the entire httpd process? =A0There is also multiplicity to
>> consider, which if I recall correctly is multiple interpreters per
>> thread.
>>
>>>
>>> I can't see what version is installed under Debian Lenny mod_perl2,
>>> but I imagine it's .91. =A0At any rate the installed docs contain the
>>> caveat against threaded MPM's which seems to have been removed, but I
>>> don't see anything about it in the CPAN module changes file.
>>>
>>> Thanks.
>>>
>>> Mark Copper
>>>
>>
>