Re: Apache2::SizeLimit and x64_86

E R <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
On Mon, Apr 11, 2011 at 3:43 AM, Dave Hodgkinson <[email protected]> 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->();

to get the current program size. I don't even remember how I came to use this.

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 other stuff from the mod-perl dist for the RSS-SHARED patch?
Do I need to upgrade to mod-perl 2.0.5 (or later) for this fix?

Thanks,
ER
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.