Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

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 having an uproarious good time at the Monastery: (5)
As of 2018-07-18 05:23 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (383 votes). Check out past polls.