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

后端 未结 5 504
别那么骄傲
别那么骄傲 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:16

    valgrind is a great linux application, which locates memory leaks in running code. If your Perl code runs on linux, you should check it out.

提交回复
热议问题