Factoring out Apache::SizeLimit::Core?

Factoring out Apache::SizeLimit::Core?

am 24.02.2011 09:42:03 von Max Kanat-Alexander

Hey folks. Would it be possible to factor the memory-sizing code in
Apache::SizeLimit::Core into a separate module (or is there already a
separate module that does something similar)? I'd love a module that can
just reliably tell me how much memory a process is using across all
platforms.

-Max
--
http://www.bugzillasource.com/
Competent, Friendly Bugzilla, Perl, and IT Services

Re: Factoring out Apache::SizeLimit::Core?

am 24.02.2011 14:46:12 von Perrin Harkins

Hi Max,

I see a couple of things out there, like Memory::Usage. They don't
look as comprehensive though. It would be fine to take code from
SizeLimit if you want to put it into some other module. It should
probably be distributed outside of mod_perl to make it useful in the
way you're describing.

- Perrin

On Thu, Feb 24, 2011 at 3:42 AM, Max Kanat-Alexander
wrote:
> =A0 =A0 =A0 =A0Hey folks. Would it be possible to factor the memory-sizin=
g code in
> Apache::SizeLimit::Core into a separate module (or is there already a
> separate module that does something similar)? I'd love a module that can
> just reliably tell me how much memory a process is using across all
> platforms.
>
> =A0 =A0 =A0 =A0-Max
> --
> http://www.bugzillasource.com/
> Competent, Friendly Bugzilla, Perl, and IT Services
>

Re: Factoring out Apache::SizeLimit::Core?

am 24.02.2011 14:47:19 von Perrin Harkins

Oh, maybe Proc::Processtable is what you want.

- Perrin

On Thu, Feb 24, 2011 at 8:46 AM, Perrin Harkins wrote:
> Hi Max,
>
> I see a couple of things out there, like Memory::Usage. =A0They don't
> look as comprehensive though. =A0It would be fine to take code from
> SizeLimit if you want to put it into some other module. =A0It should
> probably be distributed outside of mod_perl to make it useful in the
> way you're describing.
>
> - Perrin
>
> On Thu, Feb 24, 2011 at 3:42 AM, Max Kanat-Alexander
> wrote:
>> =A0 =A0 =A0 =A0Hey folks. Would it be possible to factor the memory-sizi=
ng code in
>> Apache::SizeLimit::Core into a separate module (or is there already a
>> separate module that does something similar)? I'd love a module that can
>> just reliably tell me how much memory a process is using across all
>> platforms.
>>
>> =A0 =A0 =A0 =A0-Max
>> --
>> http://www.bugzillasource.com/
>> Competent, Friendly Bugzilla, Perl, and IT Services
>>
>

Re: Factoring out Apache::SizeLimit::Core?

am 24.02.2011 15:43:10 von Max Kanat-Alexander

On 02/24/2011 05:47 AM, Perrin Harkins wrote:
> Oh, maybe Proc::Processtable is what you want.

Ah, no, it doesn't work on Win32 as far as I can tell. (Working on
Win32 is one of my requirements.) SizeLimit is the only module I've been
able to find that can reliably determine process size across platforms.

-Max
--
http://www.bugzillasource.com/
Competent, Friendly Bugzilla, Perl, and IT Services