I have a daemon that essentially does:

$spamtest = Mail::SpamAssassin->new;

while() {
     $mail = Mail::SpamAssassin::NoMailAudit->new( nomime => 1, data => [EMAIL 
PROTECTED]);
     $status = $spamtest->check($mail);
     $status->finish();
}


and I've found that it continually consumes memory.  I can send a 20 line sample
program if it's instructive.

Is there something else I should be doing to clean up between iterations, or is
this a bug?  I've RTFM, but maybe I'm missing something.  The stuff in the while
is actually in a subroutine so garbage should be collected on each iteration.
Also, undefing spamtest every N iterations actually makes it consume memory even
more!

I'm using SA 2.55-3 on RH9 w/ perl 5.8.0.  Also happens w/ SA 2.44 and 2.54
(haven't tried others), perl 5.6.1, AIX or Linux.


# rpm -qi spamassassin-2.55-3
Name        : spamassassin                 Relocations: /usr
Version     : 2.55                              Vendor: Red Hat, Inc.
Release     : 3                             Build Date: Sat 05 Jul 2003 09:52:30 PM EDT
Install Date: Thu 17 Jul 2003 09:36:33 AM EDT      Build Host: porky.devel.redhat.com
Group       : Applications/Internet         Source RPM: spamassassin-2.55-3.src.rpm
Size        : 1104883                          License: Artistic

[The problem happens on 2.44-11.8.x, and on SpamAssassin 2.54
(1.174.2.17-2003-05-11-exp) as well]


# rpm -qi perl-5.8.0-88
Name        : perl                         Relocations: (not relocateable)
Version     : 5.8.0                             Vendor: Red Hat, Inc.
Release     : 88                            Build Date: Tue 18 Feb 2003 10:52:16 PM EST
Install Date: Mon 16 Jun 2003 10:38:34 AM EDT      Build Host: 
stripples.devel.redhat.com
Group       : Development/Languages         Source RPM: perl-5.8.0-88.src.rpm
Size        : 35423442                         License: Artistic
Signature   : DSA/SHA1, Wed 23 Apr 2003 06:25:27 PM EDT, Key ID 51270c519a9892fb


Thanks for any insight anyone might have.
-nik


-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to