Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
The stupid question is the question not asked
 
PerlMonks  

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2014-04-23 23:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (557 votes), past polls