Jason Haar wrote:
On Tue, Aug 17, 2004 at 12:57:15PM +0100, Brian Morrison wrote:
Yes, there's almost no point to having free physical memory on a
machine, if it is freed and not claimed by something else the VM will
remember the last use and not overwrite or swap unless something else
needs to commit memory.
Sory - but coding that way will just lead to DoS attacks.
[snip]
Can't you use clamdwatch.pl with it ?I don't mind it using 200M - but I don't know if *sometimes* it need xxxM. I do know I can't have clamd taking 1Gb RAM without my system grinding to a halt - and that'w why I want to use softlimit to stop that happening.
...and yet I can't :-(
Can clamd be made to exit on memory errors? That way daemontools can just start it from scratch again
On my setup, I have clamd under softlimit, fghack, and daemontools.
I also run clamdwatch.pl every 5 minutes. If clamdwatch fails (out of memory, bad database, or whatever)
I kill clamd (kill -9 `ps -ef | grep /usr/local/sbin/clamd | awk '{print $2}'`) and let daemontools start it.
It's not elegant, but it works for me.
Regards,
Fajar
------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ Clamav-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-users