|Just another Perl shrine|
memory usage/leaksby smackdab (Pilgrim)
|on Dec 09, 2001 at 23:34 UTC||Need Help??|
smackdab has asked for the
wisdom of the Perl Monks concerning the following question:
My program is most likely leaking memory ;-)
I am relatively new to Perl and don't really understand how the automatic garbage collection works. If my machine has 512Meg of RAM, and I let the program run overnight, when does it decide to free the variable's memory?
Are there good techniques to use in tracking this down? or managing memory for long-running programs?
(The main part of my program uses Tk and some graphics. The graphics are being repeatedly generated and *hopefully* destroyed) (I do generate some photo's which are big, and after I am done I undef them. But this is the only case I explicitly release memeroy)
I always seem to leave out important things out of my questions, let me know if more info is needed ;-)