Stephen Gran wrote:

On Fri, Aug 13, 2004 at 12:14:10PM -0700, Jim Gaynor said:


clamav-milter --noreject --postmaster-only --local --max-children=10 /var/run/clamav/clmilter.sock

In the last two days, I've twice had my system load jump to > 10.0 (to the point where sendmail was rejecting incoming connections) due to the max number of clamav-milter children spawning and consuming memory and CPU.

If I kill -9 the clamav-milter processes (doesn't respond to a graceful restart request), then restart clamav-milter, it's good to go, and doesn't immediately try to spawn the max number of children.


Get rid of max-children. Without the argument, clamav-milter spawns as
many child processes as it needs. With it, requests from sendmail get
stuck waiting for an available child, and the load can easily go through
the roof. If the load from unlimited milter processes is too much, try
limitng the number of sendmail processes that are allowed at a time.
MaxDaemonChildren or something - you'll have to double check, since it's
been a little while.



It isn't sendmail that's borking this system, tho; it's the multiple high-load high-memory clamav-milter processes. I've checked the sendmail queue when those processes start to hog resources, and only had 32 items in queue one time, 24 another. Heck, right now I have 26, and load is still < 1.0


I'm not saying your approach is wrong, I'm just saying I'm not entirely convinced it's right - spawning off more children doesn't seem the answer when the existing ones appear to have all gone into high-resource-consumption state...

   -jg

--
Jim Gaynor, SATG - Senior Computer Specialist
UW College of Engineering, Office of the Dean
email: [EMAIL PROTECTED]



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

Reply via email to