clamav-users August 2007 archive
Main Archive Page > Month Archives  > clamav-users archives
clamav-users: Re: [Clamav-users] memory leak in clamd (0.91.1)?

Re: [Clamav-users] memory leak in clamd (0.91.1)?

From: Todd Lyons <tlyons_at_nospam>
Date: Wed Aug 15 2007 - 21:47:26 GMT

Hash: SHA1

On Tue, Aug 14, 2007 at 03:18:42PM -0600, Joshua Rubin wrote:

>Tue Aug 14 15:08:40 2007 -> No stats for Database check - forcing reload
>Tue Aug 14 15:08:40 2007 -> Reading databases from /var/share/clamav
>Tue Aug 14 15:09:16 2007 -> Database correctly reloaded (304149 signatures)

Part of your problem is that you have two copies of the database loaded:

CentOS45[root@smtp1 clamav]# sigtool --list-sig | wc -l 147155

>It also seems that setting SelfCheck to 0 (disabled) makes the problem
>go away. If freshclam is signaling clamd to reload the database when

It's at that point that it loads the second copy, so something about freshclam is likely not seeing the database that clamd is loading, downloading a second copy, clamd is HUP'd and loads the second copy. Probably some difference in configuration, but I've not wrapped my head around it. My fix (a while back) was just delete /var/clamav/*, run freshclam manually, start clamd, then start freshclam daemon. No problems since then.

  • -- Regards... Todd Chris: grep 500 undefine(`FAIL_MAIL_OVER_500_MILES')dnl Chris: just in case ... Linux kernel 2.6.17-6mdv 7 users, load average: 0.15, 0.10, 0.17 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux)


Help us build a comprehensive ClamAV guide: visit