You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2006/12/30 22:36:56 UTC
[Bug 5260] New: Memory leak persists in 3.2 DNS usage
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5260
Summary: Memory leak persists in 3.2 DNS usage
Product: Spamassassin
Version: SVN Trunk (Latest Devel Version)
Platform: Other
OS/Version: other
Status: NEW
Severity: major
Priority: P5
Component: Libraries
AssignedTo: dev@spamassassin.apache.org
ReportedBy: felicity@apache.org
I reported a memory leak issue earlier in the year wrt DNS requests, and Justin
fixed up some code which fixed the issue for me at the time. I've since found
that I have been getting "Out of memory" errors again while doing the network
weekly mass-check runs, presumably due to a larger number of messages being
processed.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 5260] Memory leak persists in 3.2 DNS usage
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5260
------- Additional Comments From jm@jmason.org 2007-01-05 06:07 -------
fwiw, I can see a small leak, increasing steadily:
./mass-check --net -n -o spam:dir:/local/cor/recent/spam/high.2007010*
Fri Jan 5 14:03:27 2007: 0 1000 28930 6473 18 0 14372 12512 - R+
pts/2 0:00 /usr/bin/perl -w ./mass-check --net -n -o
spam:dir:/local/cor/recent/spam/high.2007010*
Fri Jan 5 14:03:28 2007: 0 1000 28930 6473 18 0 23888 21284 - R+
pts/2 0:01 /usr/bin/perl -w ./mass-check --net -n -o
spam:dir:/local/cor/recent/spam/high.2007010*
Fri Jan 5 14:03:29 2007: 0 1000 28930 6473 20 0 25224 22472 - R+
pts/2 0:02 /usr/bin/perl -w ./mass-check --net -n -o
spam:dir:/local/cor/recent/spam/high.2007010*
...time passes...
Fri Jan 5 14:04:00 2007: 0 1000 28930 6473 17 0 36748 34296 - S+
pts/2 0:07 /usr/bin/perl -w ./mass-check --net -n -o
spam:dir:/local/cor/recent/spam/high.2007010*
Fri Jan 5 14:04:04 2007: 0 1000 28930 6473 16 0 36748 34296 - S+
pts/2 0:08 /usr/bin/perl -w ./mass-check --net -n -o
spam:dir:/local/cor/recent/spam/high.2007010*
Fri Jan 5 14:04:05 2007: 0 1000 28930 6473 17 0 36748 34296 - S+
pts/2 0:09 /usr/bin/perl -w ./mass-check --net -n -o
spam:dir:/local/cor/recent/spam/high.2007010*
Fri Jan 5 14:04:07 2007: 0 1000 28930 6473 17 0 36748 34296 - R+
pts/2 0:09 /usr/bin/perl -w ./mass-check --net -n -o
spam:dir:/local/cor/recent/spam/high.2007010*
Fri Jan 5 14:04:08 2007: 0 1000 28930 6473 17 0 36748 34296 - S+
pts/2 0:09 /usr/bin/perl -w ./mass-check --net -n -o
spam:dir:/local/cor/recent/spam/high.2007010*
...more time...
Fri Jan 5 14:04:48 2007: 0 1000 28930 6473 17 0 37816 35408 - R+
pts/2 0:19 /usr/bin/perl -w ./mass-check --net -n -o
spam:dir:/local/cor/recent/spam/high.2007010*
Fri Jan 5 14:04:49 2007: 0 1000 28930 6473 15 0 37816 35408 - S+
pts/2 0:19 /usr/bin/perl -w ./mass-check --net -n -o
spam:dir:/local/cor/recent/spam/high.2007010*
Fri Jan 5 14:04:50 2007: 0 1000 28930 6473 16 0 37816 35408 - S+
pts/2 0:19 /usr/bin/perl -w ./mass-check --net -n -o
spam:dir:/local/cor/recent/spam/high.2007010*
Fri Jan 5 14:04:51 2007: 0 1000 28930 6473 15 0 37816 35408 - S+
pts/2 0:20 /usr/bin/perl -w ./mass-check --net -n -o
spam:dir:/local/cor/recent/spam/high.2007010*
Fri Jan 5 14:04:54 2007: 0 1000 28930 6473 16 0 37816 35408 - S+
pts/2 0:20 /usr/bin/perl -w ./mass-check --net -n -o
spam:dir:/local/cor/recent/spam/high.2007010*
...more...
Fri Jan 5 14:06:34 2007: 0 1000 28930 6473 16 0 38092 35636 - R+
pts/2 0:34 /usr/bin/perl -w ./mass-check --net -n -o
spam:dir:/local/cor/recent/spam/high.2007010*
Fri Jan 5 14:06:35 2007: 0 1000 28930 6473 17 0 38092 35636 - S+
pts/2 0:34 /usr/bin/perl -w ./mass-check --net -n -o
spam:dir:/local/cor/recent/spam/high.2007010*
Fri Jan 5 14:06:36 2007: 0 1000 28930 6473 16 0 38092 35636 - S+
pts/2 0:34 /usr/bin/perl -w ./mass-check --net -n -o
spam:dir:/local/cor/recent/spam/high.2007010*
Fri Jan 5 14:06:38 2007: 0 1000 28930 6473 15 0 38092 35636 - S+
pts/2 0:34 /usr/bin/perl -w ./mass-check --net -n -o
spam:dir:/local/cor/recent/spam/high.2007010*
Fri Jan 5 14:06:41 2007: 0 1000 28930 6473 16 0 38092 35636 - S+
pts/2 0:34 /usr/bin/perl -w ./mass-check --net -n -o
spam:dir:/local/cor/recent/spam/high.2007010*
Using the Dumpmem code I put together a while back, however, it appears that if
something is being leaked, it's not linked from the Mail::SpamAssassin object,
since it doesn't show up in Data::Dumper dumps of that obj after each scanned
message.
There's a possibility that the leak *I'm* looking at is just perl's inherent
leaks (which do exist, hence the spamd and mass-check --restart behaviour) --
note the very slow increase once it's stabilized after a minute or so -- rather
than the one you're seeing.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 5260] Memory leak persists in 3.2 DNS usage
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5260
felicity@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|Undefined |3.2.0
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 5260] Memory leak persists in 3.2 DNS usage
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5260
------- Additional Comments From jm@jmason.org 2007-01-29 14:35 -------
so far, this has been a total non-issue in my mass-checks. Tempted to close the
bug -- anyone disagree?
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 5260] Memory leak persists in 3.2 DNS usage
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5260
jm@jmason.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.2.0 |3.3.0
------- Additional Comments From jm@jmason.org 2007-02-02 10:36 -------
ok, I'm going to move this out to 3.3.0; I don't think we need to worry about it
for 3.2.0.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 5260] Memory leak persists in 3.2 DNS usage
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5260
------- Additional Comments From jm@jmason.org 2007-01-26 02:33 -------
is this causing trouble in the mass-checks for anyone?
(FWIW, my m-c processes are fine, using --restart=400.)
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 5260] Memory leak persists in 3.2 DNS usage
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5260
------- Additional Comments From jm@jmason.org 2007-01-05 05:00 -------
btw, what's the command line you're using?
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 5260] Memory leak persists in 3.2 DNS usage
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5260
------- Additional Comments From jm@jmason.org 2007-01-10 15:54 -------
Using bleadperl (which has most of the memory leaks fixed, apparently), we see a
much better picture:
Wed Jan 10 23:44:35 2007: 0 1000 32284 6473 15 0 24544 22676 - S+
pts/2 0:09 bleadperl ./mass-check --net -n -o
spam:dir:/local/cor/recent/spam/high.2007010*
[mass-check several hundred messages...]
Wed Jan 10 23:47:04 2007: 0 1000 32284 6473 16 0 24544 22676 - S+
pts/2 0:21 bleadperl ./mass-check --net -n -o
spam:dir:/local/cor/recent/spam/high.2007010*
[mass-check several hundred more messages...]
Wed Jan 10 23:49:50 2007: 0 1000 32284 6473 16 0 24544 22676 - S+
pts/2 0:34 bleadperl ./mass-check --net -n -o
spam:dir:/local/cor/recent/spam/high.2007010*
I think this is definitely leaks in perl, not in SA itself, accordingly.
(BTW, in passing, note the massive improvement in memory usage -- 24MB per
process vs 38MB! must look into that. maybe it's just that I have less of the
optional modules compiled for 5.9.5 compared to 5.8.7... still, pretty amazing)
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 5260] Memory leak persists in 3.2 DNS usage
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5260
------- Additional Comments From felicity@apache.org 2007-01-29 14:37 -------
so far things are ok, now that I've lowered the number of messages being processed.
if we're sure the leak is in perl itself and not code we can directly fix, then
that's fine.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 5260] Memory leak persists in 3.2 DNS usage
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5260
jm@jmason.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
------- Additional Comments From jm@jmason.org 2008-02-12 13:24 -------
closing the bug; this has been a non-issue for nearly a year now
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 5260] Memory leak persists in 3.2 DNS usage
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5260
------- Additional Comments From jm@jmason.org 2007-01-05 06:08 -------
oh btw, here's how to use Dumpmem:
MEMDEBUG=1 ./mass-check --cf='loadplugin Dumpmem plugins/Dumpmem.pm' --net -n -o
spam:dir:/local/cor/recent/spam/high.2007010*
it requires a batch of odd modules though; Devel::Peek, Devel::Size, and
possibly Devel::Gladiator.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
[Bug 5260] Memory leak persists in 3.2 DNS usage
Posted by bu...@bugzilla.spamassassin.org.
http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5260
jm@jmason.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|major |minor
------- Additional Comments From jm@jmason.org 2007-01-19 02:10 -------
I'm lowering the priority, since this seems to be a perl bug, not an SA one...
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.