How can I find memory leaks in long-running Perl program?

后端 未结 5 547
别那么骄傲
别那么骄傲 2020-12-02 08:50

Perl uses reference counting for GC, and it\'s quite easy to make a circular reference by accident. I see that my program seems to be using more and more memory, and it will

5条回答
  •  孤街浪徒
    2020-12-02 09:32

    In addition to the other comments, you may find my Perl Memory Use talk at LPW2013 useful. I'd recommend watching the screencast as it explains the slides and has some cute visuals and some Q&A at the end.

    I'd also suggest looking at Paul Evans Devel::MAT module which I mention in the talk.

提交回复
热议问题