Aaron Trevena aaron.trevena at gmail.com
Tue Apr 25 11:51:38 BST 2006

On 25/04/06, Dirk Koopman <djk at tobit.co.uk> 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?

As it happens I've been working on memory usage optimisation for my
scheduler. There are several modules on cpan for finding circular
references and measuring memory use.

The harder problem is stopping long living hashes from greedily
grabbing memory and refusing to return it.


More information about the london.pm mailing list