Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

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.

Replies are listed 'Best First'.
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (4)
As of 2018-06-20 04:15 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (116 votes). Check out past polls.