Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://449095]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2017-03-25 11:52 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (311 votes). Check out past polls.