in reply to Re: To each() their own
in thread To each() their own

The memory leak is already well known to the Perl developers. Apparently the RE compiler and perhaps something in Encode which may just be the same RE issue eats memory like a hungry monster. The tickets on the subject all provide small code samples that will exploit the leak. My application will crap out in an hour or so. I'm on Linux and the application will be killed by the OS once it stresses the system for memory. At this time the RSS should be less than 500MB. The sample memory leak example looks something like this. You wont be able to run it because a helper module I'm using here is unavailable to you.
$ perl -MSimple::HostStat -MEncode -e 'my $m=Simple::HostStat->new; wh +ile (1) { encode("ascii", substr("test",1)); if ( int(rand(350000)) = += 1 ){printf "# %s\n", $_ for ( $m->toConsole ) }}' # However I think the original (something like this) and a command lik +e top will also due fine $ perl -MEncode -e 'while (1) { encode("ascii", substr("test",1)) }'

Replies are listed 'Best First'.
Re^3: To each() their own
by choroba (Cardinal) on May 02, 2017 at 12:09 UTC
    Thanks. The link to the ticket would've been enough.

    ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,