Re: Apache2::SizeLimit for threaded MPM's

Fred Moyer <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
On Thu, Dec 30, 2010 at 9:50 AM, Mark Copper <[email protected]> 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.  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
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.