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)? - Temporary partial files

From: Eric Kruse <erick_at_nospam>
Date: Tue Aug 14 2007 - 13:26:05 GMT

> Does clamd (0.91.1) have a memory leak of some sort?

> After it's started, it takes just about 40-50 MB:
> clamav 13602 48.0 8.4 47932 45128 ? Ds 10:38
> clamd
> -c /etc/clamd.conf
> After some time, the memory usage goes to about 100 MB,
> begins
> to swap more and more:
We had a similar problem, found that the temporary files from scanning partial mime messages were not being cleaned up. And were taking up large amounts of disk space I wrote a one liner put in cron.daily to clean these files if older than 1 day just to be safe. Was surprised to see that deleting them also freed up memory used by clamd, so maybe they weren't deleted in first place because clamd is still holding onto them. Hope this helps: #!/bin/bash find /var/spool/qmailscan/clamav-partial/* -mtime +1 -exec rm {} ';' Regards, Eric Kruse _______________________________________________ Help us build a comprehensive ClamAV guide: visit