Bauldric has asked for the wisdom of the Perl Monks concerning the following question:
I am working with Perl 5.8.8 (ActiveState) under windows.
I have serious memory problems, although I allways use strict.pm (working only with local vars 'me $var') and do not use global vars. The program I've written has about 40000 Lines in more than 100 packages.
Do you know a good Package for searching memory leaks under Windows XP and perl version 5.8.8.
I would like to have something like the Devel::Symdump does to produce a list of all variables whose size has changed or are new allocated between two program-positions:
my $memdump = MemoryDump->new(); anyFunction(); print $memdump->diff(MemoryDump->new();
Exist something like that for ActiveState-Perl?
Thank you a lot for you response.Update:
Thank you for your responses.
I've tried to install Devel::LeakTrace, but it does not work because I am working with a company-computer that prevents me to update any program (and I do not want bypass the restriction). So I've found that for counting References of objects the allready installed package 'B' works fine.
my $anon = []; my $otherref = $anon; my $refcount = B::svref_2object($anon)->REFCNT(); # => 2
Also the package 'Devel::Symdump' could I use, to trace the symbol-table. I've copied it into my private Class-Folder
I will inform you about as soon as I found the solution about my memory-leak. (And the way I've found it)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Memory Leak Package
by BrowserUk (Patriarch) on Oct 28, 2012 at 04:21 UTC | |
by Bauldric (Novice) on Oct 28, 2012 at 09:42 UTC | |
by BrowserUk (Patriarch) on Oct 28, 2012 at 09:57 UTC | |
by bulk88 (Priest) on Oct 28, 2012 at 18:49 UTC | |
|
Re: Memory Leak Package
by zwon (Abbot) on Oct 27, 2012 at 13:59 UTC | |
|
Re: Memory Leak Package
by bulk88 (Priest) on Oct 27, 2012 at 15:43 UTC |