develooper Front page | perl.perl5.porters | Postings from July 2019

Re: [perl #134305] Memory Leak in perl 5.28 and 5.30

Thread Next
From:
Alexander Shikov
Date:
July 27, 2019 04:36
Subject:
Re: [perl #134305] Memory Leak in perl 5.28 and 5.30
Message ID:
20190725070847.GA95910@crete.itcons.net.ua
Hello!

On Wed, Jul 24, 2019 at 15:07:48 -0700, James E Keenan via RT wrote:
> > Add the line below to syslog.conf to save log to file:
> > local2.*                                        /var/log/yarpd.log
> 
> I tried that (as well as another spelling including this ticket number) but each time the output was simply appended to /var/log/debug.log.
> 
> How can I get this to go to a file just for this problem?

It does not matter. I just described closely our environment but problem can
be triggered with default syslogd configuration file as well

I repeated a test some minutes ago.
I've started three scripts, each with different version of perl:

# ps ax|grep syslog-demo :
/home/minotaur>ps ax|grep syslog-demo
96010  9  S+      0:00,00 grep syslog-demo
96008 10  S+      0:00,43 /usr/local/bin/perl5.30.0 -w ./syslog-demo-5.30.pl
96007 11  S+      0:00,60 /usr/local/bin/perl5.28.2 -w ./syslog-demo-5.28.pl (perl)
96006 15  S+      0:00,75 /usr/local/bin/perl5.26.3 -w ./syslog-demo-5.26.pl

The results are:

<9:46:18> # top -b | grep perl
96007 root          1  30    0   522M   515M nanslp   3   0:05  14.26% perl
96008 root          1  31    0   412M   401M nanslp   3   0:05  14.16% perl5.30.0
96006 root          1  25    0    17M  8624K nanslp   0   0:04   7.57% perl5.26.3

<9:46:19> # top -b | grep perl
96007 root          1  30    0   543M   537M nanslp   1   0:06  14.36% perl
96008 root          1  31    0   434M   423M nanslp   3   0:05  14.26% perl5.30.0
96006 root          1  25    0    17M  8624K nanslp   0   0:04   7.57% perl5.26.3

<9:46:20> # top -b | grep perl
96007 root          1  30    0   564M   559M nanslp   1   0:06  14.45% perl
96008 root          1  31    0   455M   446M nanslp   2   0:05  14.36% perl5.30.0
96006 root          1  25    0    17M  8624K nanslp   2   0:04   7.57% perl5.26.3

<9:46:21> # top -b | grep perl
96007 root          1  28    0   565M   559M CPU1     1   0:06  12.70% perl
96008 root          1  31    0   455M   446M nanslp   2   0:05  12.70% perl5.30.0
96006 root          1  25    0    17M  8624K nanslp   1   0:04   7.67% perl5.26.3

<9:46:22> # top -b | grep perl
96007 root          1  30    0   586M   581M nanslp   0   0:06  14.45% perl
96008 root          1  31    0   476M   468M nanslp   2   0:05  14.45% perl5.30.0
96006 root          1  25    0    17M  8624K nanslp   1   0:04   7.67% perl5.26.3

<9:46:23> # top -b | grep perl
96007 root          1  31    0   607M   603M nanslp   3   0:06  14.70% perl
96008 root          1  31    0   498M   490M nanslp   2   0:06  14.70% perl5.30.0
96006 root          1  25    0    17M  8624K nanslp   1   0:04   7.67% perl5.26.3


Also I tested that on FreeBSD 11.2-RELEASE. On 11.2 the problem is absent.
So it seems to be OS-specific:

1. The problem is present in FreeBSD 12.0-RELEASE.
2. The problem is only with Perl versions greater than 5.26: 5.28 and 5.30.

Thanks.

-- 
Alexander Shikov
Technical Staff, Digital Telecom IX
Tel.: +380 44 201 14 07
Mob.: +380 50 410 30 57
http://dtel-ix.net/

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About