tisdagen den 1 april 2003 02.08 skrev Jason Haar:
> 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 :-)

Very cool Jason!

I just wanted to ask if Richie is aware of the unrar bug in clamav? I applied 
a patch to my clamav package in Mandrake to adress this issue. Grab my SRC 
RPM here: 

ftp://ftp.uninett.no/linux/Mandrake/Mandrake-devel/contrib/SRPMS/clamav-0.54-7mdk.src.rpm

or grab the source here:

http://clamav.elektrapro.com/snapshot/unrarlib.c

http://clamav.elektrapro.com/snapshot/ChangeLog

Chears.
-- 
Regards // Oden Eriksson, Deserve-IT.com


-------------------------------------------------------
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