Using 0.88.3 on FreeBSD.
We have been experiencing a problem where clamd keeps using more and more
memory.. but never finishes processing the message. After some research
found that it's having a problem allocating memory.
Looking at the archives see a thread from a month ago, but didn't see any
final resolutions.
The default FreeBSD limit is 512MB.. when I noticed clamd was reaching the
limit increased it to 800MB.. it still hit that limit.
From top I saw 3 threads running. Our attachment limit on the MTA, Postfix,
is only 100MB. The StreamMaxLength is set to 100M, but decreasing this
didn't help.
During 2 instances of the problem I took ktraces and have the files at:
http://public.natserv.net/Ktrace0722.txt
http://public.natserv.net/Ktrace0724.txt
I also noticed the ExitOnOOM, which I set, but that didn't help either.
The clamd log file doesn't get updated when the condition occurs and that's
why I tried the ktrace.
On the ktrace I see above the out of memory
72023 clamd NAMI "/data/tmp/clamav-2933c47429a06ab6"
72023 clamd NAMI "/data/tmp/clamav-2933c47429a06ab6/mixedtextportionaenwJZ"
I checked both of those files and they were 1K and 2K.
This out of memory happens for us several times per day.. so we routinely
end up having to "kill -9" clamd and restart it.
I think I read most of the trhead from a month ago.. did I miss a
resolution for the problem?
_______________________________________________
http://lurker.clamav.net/list/clamav-users.html