On Tue, Apr 01, 2003 at 12:34:37AM +1000, Richie wrote:
> Sorry if this is the wrong list, but I just thought I should ask anyway.
> I'm running Qmail-scanner1.16 in a RH8.0/ 512MB/ i386 box, with Clamav and
> Spamassasin enabled.
> I had an OOM error in this box and wanted to ask everyone's opinion if this
> is related to any modules being called by Qmail-Scanner.  Or if Perl 5.8.0
> has any known memory leak issue.

Well it highly unlikely be Q-S fault, as it's not a resident process - i.e.
memory is freed after every message is processed.

I bet it's Clamav - you are running it within a ulimited environment -
right? :-)

All the "long term" AV and SA programs should be run within limited resource
"jails" - specifically to stop such problems with OOM.

e.g. here's my SA /service/SpamAssassin/run script (daemontools)


#!/bin/sh
export LANG=C
exec /usr/local/bin/softlimit -a 30000000 /usr/bin/spamd -i 0.0.0.0 -A \
 -x -u spamc -m 50 -D > /var/log/spamd.log 2>&1

You can see that softlimit is forcing a max memory limit of 30M onto spamd.
If it has a memory leak, it can grow to 30M, then *it* gets an OOM error,
exits, and daemontool auto-restarts spamd again.

Really simple - really clean - really clever :-)

Thanks again to DJB for formalizing what should have been obvious to all of
us :-)

-- 
Cheers

Jason Haar
Information Security Manager, Trimble Navigation Ltd.
Phone: +64 3 9635 377 Fax: +64 3 9635 417
PGP Fingerprint: 7A2E 0407 C9A6 CAF6 2B9F 8422 C063 5EBB FE1D 66D1


-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
Qmail-scanner-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general

Reply via email to