On Mon, Apr 11, 2011 at 2:02 PM, E R <pc88m...@gmail.com> wrote:
> On Mon, Apr 11, 2011 at 3:43 AM, Dave Hodgkinson <daveh...@gmail.com> wrote:
>> Are you using the A::S that's in the repo? It has fixes for calculating
>> sizes...
>
> Using RSS-SHARED instead of VSIZE-SHARED should fix the x86_64 issue I'm 
> seeing.
>
> But I've got some questions about Apache2::SizeLimit...
>
> 1. Are the docs accurate? The example in the POD says you can do this:
>
> require 'Apache2/SizeLimit.pm';
> ...
> my ($size, $shared) = $Apache2::SizeLimit->_check_size();
>
> But when I try this I get "Can't call method "_check_size" on an
> undefined value".
>
> Note -  I've been using:
>
> my ($size, $shared) = $Apache2::SizeLimit::HOW_BIG_IS_IT->();

Hmm, that doesn't look right.

...
> Do I need other stuff from the mod-perl dist for the RSS-SHARED patch?

Can you try the release candidate?  A couple of users were clamoring
for it but then they went quiet, so maybe it is working so well they
forgot to write back.

http://www.gossamer-threads.com/lists/modperl/dev/102778
http://people.apache.org/~phred/Apache-SizeLimit-0.96-rc1.tar.gz

> 2. I extracted version Apache::SizeLimit 0.96 out of the latest
> mod-perl snapshot (modperl-2.0_20110411151604.tar.gz) and used it with
> mod-perl 2.0.4. From the change log I was hoping that it would compute
> the program size as RSS - SHARED for linux systems, but it didn't seem
> to work.
>
> Do I need to upgrade to mod-perl 2.0.5 (or later) for this fix?

Possibly not, but highly recommended.  I would recommend going through
the mailing list thread in which Torsten details the recent changes to
Apache::SizeLimit.  The RC contains those changes.

Reply via email to