develooper Front page | perl.perl5.porters | Postings from October 2003

RE: [perl #24255] shared hash ref memory leak in 5.8.1

From:
Jack Steadman
Date:
October 22, 2003 12:52
Subject:
RE: [perl #24255] shared hash ref memory leak in 5.8.1
Message ID:
DKENINFNLHPJPCELKLPAOEDCCJAA.perlbug@wallofcuriosities.com

> I don't know how performance bound you are, but both programs work ok
> when you used forks.pm  (using an unchanged program, by specifying
> "-Mforks -Mforks::shared" on the command line).  So this might be a
> temporary alternative that would allow you to keep your source
> unchanged and not have to worry about having to restart because it is
> eating memory.

performance is important but i'm running on some pretty big boxes.  i'm
about to launch a very large threaded application in a week and half or so,
and am hesitant to make a change that large no matter how compatible they
are.  also, forks::shared doesn't support the :shared attribute, right?
that's a lot of (minor) code changes.

i was banking on the claim that 5.8.1 would solve the memory leaks with
shared vars.  a bit idealistic i'm sure, but at least the memory problem is
somewhat manageable now.  i should be able to run for about a day before
restarting, though the ideal case would obviously be to never be *forced* to
restart.

jack





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