http://www.perlmonks.org?node_id=220431

batkins has asked for the wisdom of the Perl Monks concerning the following question:

I'm working on a program that uses Net::OSCAR and Tk. The program works fine, but it uses 13MB of RAM on Win32. I don't know why this is happening. The script and all its dependent modules are no larger than one or two megabytes. I don't load any files except two 60KB images (with Tk::Photo).

Can anyone explain why the script would use so much memory or explain how I can diagnose its problem? The code is several pages long and I have decided not to include it here.