in reply to perl 5.12.3 + threads + memory leak

Try
sub sub1() { require LWP::UserAgent; my $ua = LWP::UserAgent->new; $ua->timeout(2); ...

Replies are listed 'Best First'.
Re^2: perl 5.12.3 + threads + memory leak
by kamenpetrov (Novice) on Feb 14, 2011 at 14:19 UTC
    I just tried that but the leak remains.

      Get rid of $$threadname
        Just tried it.. its not that too.

        What I notice while monitoring with "top" is the virtual memory is increased at the moment of "->join()".