Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Detailed memory dumps (leak hunting)

by janx (Monk)
on Sep 24, 2002 at 12:27 UTC ( [id://200343]=note: print w/replies, xml ) Need Help??


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)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://200343]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-04-16 14:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found