Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 123797 - spamassassin (spamd) possible memory leak
Summary: spamassassin (spamd) possible memory leak
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-23 02:05 UTC by Benjamin Hodgetts
Modified: 2007-02-23 20:15 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Hodgetts 2006-02-23 02:05:02 UTC
Rather severe issue with an unmidified installation of spamassassin. Over time the spamd child processes don't terminate and just continue to grow and grow over time until the kernel starts terminating processes on the machine. SpamD uses 50MB by default and then just grows slowly over time as if there is a memory leak. Uses 50MB just after being run, an hour or so later is was using 100MB, then 175, etc etc.

Also, there are 45 rulesets installed by default which the spamassassin people don't seem too happy about as they aren't actually part of the base spamassassin package, it also bloats the execution so the process uses 50MB when it is first run rather than 16MB so it may be worth having a use flag which needs to be added if you want these compiled in with SA rather than having to specify "+minimal" to not install them (although I'm not sure if +minimal does actually stop them from being installed).
Comment 1 Michael Cummings (RETIRED) gentoo-dev 2006-03-12 07:40:49 UTC
What version of perl and when did you first notice this? I ask because there is a known issue with perl 5.8.8 and UTF8.
Comment 2 Roger 2006-03-26 02:49:49 UTC
Wow. I'm seeing spamd use lots of memory too here (up to 2 threads of 10% of my 512MB of ram)...  this is not a "good thing" for my laptop using Suspend2 to hibernate.  

I am using the -m 1 flag option too.

(Two threads using 10% of my ram upon startup without even starting to filter mail yet.)

Comment 3 Michael Cummings (RETIRED) gentoo-dev 2006-03-26 04:56:29 UTC
(In reply to comment #0)
> Also, there are 45 rulesets installed by default which the spamassassin people
> don't seem too happy about as they aren't actually part of the base
> spamassassin package

They are shipped with SA. ergo, we install them.

I don't doubt the memory problems - I just can't dup them and have no errors to work with here that would indicate it is a problem with the ebuild....
Comment 4 Christian Hartmann (RETIRED) gentoo-dev 2007-02-23 20:15:59 UTC
What Mike said.