Hi there,
On Fri, 26 May 2017, Chris Colemanwrote:
On Debian Jessie 8, 32 bit, 256MB ram, 14MB in use.
Why is |freshclam| so memory hungry that it bombs out with
|Failed to load new database|
The database is updated by freshclam, but it is loaded by clamd (when
it finds that a new database is ready) or by clamscan if you run that
tool from the command line.
when there's 242 MB of free RAM available? ...
Mailing list etiquette suggests that you read at least a few earlier
posts in the archives before posting. One of the biggest complaints
about ClamAV is the large amount of memory that it uses to do what
little it does. If you had read, say, the last week's posts you would
already know that 256MB is not nearly enough to load any recent ClamAV
database.
Here's the output of 'top' on one of my mail servers:
mail6:~$ >>> top -b -n1 -o%MEM | head
top - 17:07:35 up 41 days, 1:59, 5 users, load average: 0.00, 0.00, 0.00
Tasks: 151 total, 1 running, 150 sleeping, 0 stopped, 0 zombie
%Cpu(s): 1.0 us, 0.4 sy, 0.0 ni, 98.4 id, 0.1 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem: 16469444 total, 14988492 used, 1480952 free, 177620 buffers
KiB Swap: 3212284 total,0 used, 3212284 free. 13462328 cached Mem
PID USER PR NIVIRTRESSHR S %CPU %MEM TIME+ COMMAND
1512 clamav20 0 1012904 656804 23996 S 0.0 4.0 95:55.82 clamd
16589 defang20 0 169552 84728 7928 S 0.0 0.5 0:05.54
mimedefang.pl
32100 defang20 0 167096 82156 7776 S 0.0 0.5 0:02.99
mimedefang.pl
As you can see, the RESident memory used on this machine by clamd is over
650Mbytes.
--
73,
Ged.
___
clamav-users mailing list
clamav-users@lists.clamav.net
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq
http://www.clamav.net/contact.html#ml