Subject: | There is the memory leak is for some pages. |
There is the memory leak is for some pages.
I attached html file.
I tested also gumbo parser without perl - is all right.
Leak is in perl module.
use HTML::Gumbo;
foreach (1 .. 100) {
my $tree = HTML::Gumbo->new->parse($html, format => 'tree');
$tree->delete;
undef $tree;
print `ps u -p $$`;
}
USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND
nick 2846 0,0 0,6 22140 18312 - S 11:05 0:00,37 perl -I. 2.pl
nick 2846 0,0 0,6 22140 18848 - S 11:05 0:00,61 perl -I. 2.pl
nick 2846 0,0 0,6 24188 19272 - S 11:05 0:00,85 perl -I. 2.pl
....
nick 2846 74,8 1,5 48764 45408 - S 11:05 0:14,60 perl -I. 2.pl
...
nick 2846 92,2 2,1 65148 61972 - S 11:05 0:24,54 perl -I. 2.pl
nick 2846 94,7 2,1 65148 61980 - S 11:05 0:24,79 perl -I. 2.pl
Subject: | memory_leak.html |
Message body is not shown because it is too large.