Memory leak in old LWP?

Boris Statnikov (boris@blaze.cs.jhu.edu)
Sat, 8 Nov 1997 14:09:18 -0500 (EST)


I am using LWP 5.08 with Perl 5.003.  After storing all large arrays on
disk as DBMs I find that my program still gobbles memory (and keeps
growing as long as it runs).  I don't use any circular data structures,
and the only Perl library that I use is LWP.  

For a while, I suspected the parser, HTML::LinkExtor.  But I use a
callback to extract all the links and the internal list of links of the
parser is empty (I checked).  Are there any other objects that can be
suspect?  Anything that needs to explicitly clean up after itself?  Can I
somehow trace the memory usage per array, hashtable, etc?

P.S. As I understand, Perl doesn't return free memory to the system.  Are
there circumstances when it would fail to use the INTERNAL free memory and
grab more from the system?

Boris


Too many cooks spoil the brouhaha.

	Harvard Lampoon, "Bored of The Rings"