in reply to Re: ithreads memory leak
in thread ithreads memory leak
Same effect unfortunately, to confirm my code now looks like:
#!/home/alerting/perl5/perlbrew/perls/perl-5.20.2/bin/perl use warnings; use IO::Handle; use threads stack_size => 64*1024; use strict; use DBI; use Email::MIME; use Email::Sender::Simple qw(sendmail); while (<STDIN>) { chomp(my $msg = $_); print "Received: $msg\n"; if ($msg =~ /start/) { threads->create(\&thread)->detach; } } sub thread { print "Thread started!\n"; sleep 5; }
Memory usage still balloons, stops, then starts up again. Very puzzling, at least to me.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: ithreads memory leak
by BrowserUk (Patriarch) on Apr 08, 2015 at 18:13 UTC | |
by DNAb (Novice) on Apr 08, 2015 at 19:17 UTC | |
by BrowserUk (Patriarch) on Apr 08, 2015 at 19:45 UTC | |
by DNAb (Novice) on Apr 08, 2015 at 22:38 UTC | |
by BrowserUk (Patriarch) on Apr 08, 2015 at 23:00 UTC | |
|