Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: Tracking down memory leaks

by scain (Curate)
on Apr 19, 2005 at 02:46 UTC ( #449095=note: print w/ replies, xml ) Need Help??

in reply to Tracking down memory leaks

I found the source of the leak. It turned out that Devel::Leak::Object was useful, if I had only taken one more step. With a small set of sample data, I ran the script and then used Data::Dumper to dump out the IO object that the author assured me didn't leak. Well, as it turns out, it was caching every line of the file that it saw, plus a fair amount of derived data that it calculates for each line. The somewhat annoying thing is that it doesn't actually use 99% of that cached data for anything (one item per line does need cached). That IO object has been fixed. While it will still use some memory, it will significantly raise the that amount of data that can be processed before problems are encountered.

Thanks to all of you for your suggestions,

Project coordinator of the Generic Model Organism Database Project

Comment on Re: Tracking down memory leaks

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2015-11-26 20:03 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (706 votes), past polls