I am using Perl 5.8.5,
Try upgrading your perl.
I see no memory leaks at all on my system under both:
Memory usage goes directly to 262.6MB and stays exactly there.
Memory usage goes directly to 262.4MB and stays exactly there.
Update: Probably irrelevant as this is only demo code, but you are doing some mighty peculiar things.
They are created shared.
to then pluck it out and push it onto your shared array:while ( my $v = ["this is a test" x 250] ) {
push @$ary, $v->[0];
There is weirdness with your whole architecture, but it's pointless debugging a demo app. If you can post the real code, or a sanitised but still representative example, then I would take a look at that.
In reply to Re: Threaded script eating memory
by BrowserUk
in thread Threaded script eating memory
by suaveant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |