Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: memory leak

by eyepopslikeamosquito (Chancellor)
on Dec 22, 2016 at 20:14 UTC ( #1178384=note: print w/replies, xml ) Need Help??

in reply to memory leak

How do you debug a script that - you've been told - is causing memory leaks?
Because of Perl's reference-count based memory management, circular references will cause memory leaks. To help you find them, see: For a concrete example of dealing with circular references in Perl, see Eliminate circular reference memory leak using weaken.

Some CPAN modules that might prove useful:

Tracking down memory leaks at the C level can be done with a tool like valgrind, as discussed in Re: Valgrind, Perl, and banishing leaks.

As to when the memory is actually released back to the OS, see the answers to this question.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2018-03-25 04:10 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (300 votes). Check out past polls.