http://qs321.pair.com?node_id=200343


in reply to Detailed memory dumps (leak hunting)

Have you considered Devel::Leak?

Another one is ObjectTracker, which you might also find useful...

Regards,
janx

  • Comment on Re: Detailed memory dumps (leak hunting)

Replies are listed 'Best First'.
Re: Re: Detailed memory dumps (leak hunting)
by Vennis (Pilgrim) on Sep 24, 2002 at 13:12 UTC
    Maybe one of them can be helpful, thank you. I've seen them before, but i'm not sure if they will be giving me the information i need.

    This, because it might not be an unreclaimed object, most objects are consistant, but more of a forgotten re-initialised hash or something.

    So i thought, by determing the size of the objects at different times i can localize the memory-monster.

    I already wrote a global-variable-dump procedure that's useful in this case but i can't seem to determine the actual size of declared objects and used modules.

    Q: Why did the Perlmonk cross the road?
    A: He wanted to escape the match.

      Well if I were me (and I am) I'd write something that uses B to account for at least the visible stuff. If that didn't work then some handy dandy XS code could walk the internals. I'm of course assuming you have already read the note in perldebguts on "Debugging Perl memory usage" and you need more detail... (if you haven't then obviously this is where you go first)