[clamav-users] How to boost clamav? Reloading database results in a talking timeout?
clamav at jubileegroup.co.uk
Wed Oct 30 07:51:44 EDT 2019
On Mon, 28 Oct 2019, Reio Remma via clamav-users wrote:
> I've been running a patched 101.4 for a few weeks now and unfortunately
> I'm observing a memory leak from the multithreaded database reloads.
> I'm observing clamd memory usage going up when the new database loads
> The problem however shows itself if clamd happens to reload its database
> 2 times if a row with no mail processed in between. Seemingly it will
> have 3 databases in memory then and the next mail being processed
> releases one of them, but the extra database will remain "somewhere".
As I said I'm using 0.102-rc with the older patch, and I haven't seen
this behaviour (but I have been looking for it, and anything like it,
using Nagios etc.). On our servers there's no risk of clamd reloading
databases without processing a message inbetween the reloads, but I'm
sure I could arrange it if neccessary. :) Unfortunately at the moment
I have no time to investigate but I guess it will be simple to fix if
it isn't something peculiar to your setup - for example it might be a
problem with threads in a library. From my reading of the code, going
back admittedly a little while now, it seemed very clear that the old
database should be freed unconditionally after the new one was loaded.
I'd suggest that you raise an issue in the ClamAV Bugzilla.
More information about the clamav-users