Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2017-12-16 14:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (454 votes). Check out past polls.

    Notices?