Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2020-04-05 11:19 GMT
Find Nodes?
    Voting Booth?
    The most amusing oxymoron is:

    Results (34 votes). Check out past polls.