I wrote a persistent network service in Perl that runs on Linux.
Unfortunately, as it works, its stack size (RSS) just grows, grows and slowly grows, but grows steadily.
This, despite the diligent efforts on my part, to exclude all unnecessary hash keys and remove all references to objects, which otherwise cause the reference count to remain in place and prevent garbage collection.
Are there any good tools for profiling memory usage related to various source data primitives, hash-referenced object blocks, etc. in a Perl program? What do you use to track memory leaks?
I'm not used to wasting time in the Perl debugger or on any of the various interactive profilers, so a warm, gentle, non-esoteric answer would be appreciated. :-)
memory-management debugging memory-leaks perl profiler
Alex Balashov Aug 31 '09 at 22:54 2009-08-31 22:54
source share