Hi I'm using clamd 0.65 on FreeBSD 4.9 and noticed there is a small memory leak when clamd is updating database.
I have the following in my crontab file: 0 * * * * root /usr/local/bin/freshclam --quiet --user defang --daemon-notify=/usr/local/etc/clamav.conf Then in the clamd log there is: --------------------- Tue Dec 23 10:00:44 2003 -> Reading databases from /usr/local/share/clamav Tue Dec 23 10:00:45 2003 -> Database correctly reloaded (11947 viruses) Tue Dec 23 10:34:17 2003 -> SelfCheck: Database modification detected. Forcing r eload. Tue Dec 23 10:34:17 2003 -> Reading databases from /usr/local/share/clamav Tue Dec 23 10:34:18 2003 -> Database correctly reloaded (11947 viruses) ------------------ As you see freshclam notified the daemon successfully and clamd reloaded database, however selfchek (I have it set to 3600 seconds) forced another, unnecessary reload. Every time this happens memory footprint increases about 300 kilobytes. Initailly I thought it is okay as virus database gets bigger and is (probably) loaded in memory. However if I restart clamd it's memory footprint is smaller and it slowly grows again. I disabled freshclam updates for a test and there was no growth in memory usage then. I may be wrong in my assumption, but I thought I'd let you know. Cheers Alex ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Clamav-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/clamav-devel
