I have used spamassassin over a year on my mail server, using James as
pop/smtp and a homewritten mailet to connect to spamd through tcp.
Yesterday I suddenly discovered load average peaks over 100 (!!!) on the
server, and soon found this :

22617 spamd     18   0 1830m 1.6g 2156 D    2 54.2   2:00.59 spamd

. Yea, one instance of spamd uses 1,6 *GIGABYTE* of memory. This forces my
server to swap, which makes the server dead slow.

It happens some time after I have started SA, but mails get through fine
before this happens.


information about my system:

cat /etc/sysconfig/spamassassin
# Options to spamd (-D for debug logging)
SPAMDOPTIONS="-D -d -c -m 4 -H -u spamd"

I was using spamassassin v 3.1.9, but have now upgraded to 3.2.6, without
this fixing the problem.

plugins: I don't know which information is important so I list everything : 
I'm using URIDNSBL, Hashcash and SPF, ImageInfo,
VBounce,Bayes,BodyEval,DNSEval,HTMLEval,HEaderEval,MIMEEval,RelayEval,URIEval,WLBLEval,HTTPSMismatch,URIDetail
DCC,Pyzor,Razor2,SpamCop,AWL,AutoLearnThreshold,WhiteListSubject,MimeHeader,ReplaceTags
.

No rules over 150k.


The debug log seems to give only "normal" output, but i *think* this is what
it wrote when SA started to eat my memory : 

 metadata: X-Spam-Relays-Trusted:
Jan 27 23:38:25 s2 spamd[30682]: metadata: X-Spam-Relays-Untrusted: [
ip=80.202.4.58 rdns=osl1smout1.broadpark.no helo=osl1smout1.broadpark.no
by=www.refero.n
Jan 27 23:38:25 s2 spamd[30682]: metadata: X-Spam-Relays-Internal:
Jan 27 23:38:25 s2 spamd[30682]: metadata: X-Spam-Relays-External: [
ip=80.202.4.58 rdns=osl1smout1.broadpark.no helo=osl1smout1.broadpark.no
by=www.refero.ne
Jan 27 23:38:25 s2 spamd[30682]: message: ---- MIME PARSER START ----
Jan 27 23:38:25 s2 spamd[30682]: message: parsing multipart, got boundary:
Boundary_(ID_d1hvhmVn8zITA06RMg8o+g)
Jan 27 23:38:25 s2 spamd[30682]: message: found part of type text/plain,
boundary: Boundary_(ID_d1hvhmVn8zITA06RMg8o+g)
Jan 27 23:38:25 s2 spamd[30682]: message: added part, type: text/plain
Jan 27 23:38:40 s2 spamd[30682]: message: found part of type
application/ms-tnef, boundary: Boundary_(ID_d1hvhmVn8zITA06RMg8o+g)
Jan 27 23:38:40 s2 spamd[30682]: message: added part, type:
application/ms-tnef
Jan 27 23:38:40 s2 spamd[30682]: message: parsing normal part
Jan 27 23:38:40 s2 spamd[30682]: message: parsing normal part
Jan 27 23:38:43 s2 spamd[30675]: prefork: ordered 30683 to accept
Jan 27 23:38:43 s2 spamd[30675]: prefork: sysread(8) not ready, wait max 300
secs
Jan 27 23:38:43 s2 spamd[30675]: prefork: child 30683: entering state 2
Jan 27 23:38:43 s2 spamd[30675]: prefork: new lowest idle kid: none







Anybody have a clue?
-- 
View this message in context: 
http://www.nabble.com/Spamd-uses-over-1-gigabyte-of-memory-in-one-child-tp15125515p15125515.html
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.

Reply via email to