Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^5: XML::Twig loves to eat my memory

by almut (Canon)
on Jul 22, 2010 at 21:20 UTC ( #850914=note: print w/ replies, xml ) Need Help??

in reply to Re^4: XML::Twig loves to eat my memory
in thread XML::Twig loves to eat my memory

...memory was at 166MB after the dispose()

Does the memory usage increase another ~166MB if you call process() a second time with the same file?  (Your original post sounds like it does, but just to be sure...)

The reason I'm asking is because memory might not be returned to the OS immediately, but just freed for reuse Perl-internally.

Comment on Re^5: XML::Twig loves to eat my memory
Download Code
Re^6: XML::Twig loves to eat my memory
by carcus88 (Acolyte) on Jul 23, 2010 at 14:44 UTC
    Yes it continues to increase
    Size after first process() 
    167,472 MB
    Size after second process()
    316,212 MB

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (10)
As of 2015-06-30 11:11 GMT
Find Nodes?
    Voting Booth?

    What kind of chocolate gives you the most pleasure?

    Results (783 votes), past polls