> 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
        0:01
        > clamd 
        > -c /etc/clamd.conf
        > 
        > 
        > After some time, the memory usage goes to about 100 MB,
        machine
        > 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 http://wiki.clamav.net
http://lurker.clamav.net/list/clamav-users.html

Reply via email to