perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Gardner <>
Subject Re: Figuring out which perl file is leaking memory
Date Fri, 12 Jun 2009 10:00:23 GMT
William T wrote:
> There are some leak analysis modules that may help (Devel::Leak I
> think).  I've tried using them in the past, but they haven't worked
> well for me for various reasons.  I found commenting out early branch
> points allowed me (most of the time) to narrow down where the leak was
> actually happening.  The I typically look fr anything that looks like
> a closure or some code playing with references.

Rolf Banting wrote:
> There's a few modules on CPAN that might help e.g. Devel::LeakTrace.

The problem is that there are a lot of perl files to check out, and I
don't know which one has the leak. What I'm asking is whether there's a
way to figure out *which file* is leaking memory, without having to test
each file individually. Some kind of per-file memory usage statistics
from modperl or somesuch.

View raw message