I'm running SA-2.1 under daemontools and am using softlimits (like ulimits)
to limit the amount of memory a process can use.

It's really weird. When I started using 2.1 spamd, I had the memory limit
set to 7Mb. This worked - for a while. Then SA started crashing saying it
was out of memory - daemontools automatically restarts it - but it was still
out of memory. Running it from the command line said - it was out of memory.
So I upped it to 9Mb and it was happy again. 

Just now I notices spamd was swallowing quite a bit of CPU, and then I
noticed the PID was changing - i.e. it was crashing and restarting. Sure
enough, out of memory. I've now upped it to 10Mb and it's happy again.

By out of memory I mean this is even before you've shoved a message via
spamc into it.

This is really weird. I mean, it can't be happy running in 8M one day and 10
the next? WTF!!!

Any ideas? Unless SA alters itself automatically, this install hasn't
changed one bit throughout this process, and yet now it's acting differently
than it did a few weeks ago.


Oh yeah, RH7.2 and I'm running it as:

#!/bin/sh
#/service/SpamAssassin/run
exec /usr/local/bin/softlimit -a 10000000 /usr/bin/spamd -F 1 -L -x \
 -u spamc > /var/log/spamd.log 2>&1

-- 
Cheers

Jason Haar

Information Security Manager
Trimble Navigation Ltd.
Phone: +64 3 9635 377 Fax: +64 3 9635 417

_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to