Leaks

Aaron Trevena aaron.trevena at gmail.com
Tue Apr 25 14:10:55 BST 2006


On 25/04/06, Nik Clayton <nik at ngo.org.uk> wrote:
> Dirk Koopman wrote:
> > How does one detect memory leaks in perl?
> >
> > Specifically: I am getting reports that there is some kind of memory
> > leak in a piece of network related pure perl code that I have written.
> > Now, since this is a very old piece of code written when I was less
> > clueful, it would not altogether surprise me.
> >
> > It will some hash with a circular reference that I am not breaking or
> > something like that. Any suggestions as to how to go about finding it?
>
> Devel::Cycle?
>
> I saw Test::Memory::Cycle go by on perl-qa the other day.  Not sure if
> it's on CPAN yet -- if not, the archives should have it.

Test::Memory::Cycle is on cpan yes, also Devel::Size, which I believe
there is a perl.com article on profiling with.

Theres also one to test your objects but I can't find it right now.

A.



More information about the london.pm mailing list