Re: [clamav-users] Freshclam memory use

2017-05-26 Thread G.W. Haywood

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


Re: [clamav-users] Freshclam memory use

2017-05-25 Thread Al Varnell
Have never observed that. 

From what you have posted it sounds more like there is insufficient RAM to load 
the resulting ClamAV database, not simply running freshclam.

Can you share your freshclam or other log entries that indicate the reason for 
failure is lack of RAM and at what point the error occurs?

-Al-

On Thu, May 25, 2017 at 08:48 PM, Chris Coleman wrote:
> 
> Hello ClamAV mailing list,
> 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|, when there's 242 MB of free RAM available?
> What can be done to improve the code so the definition updates don't burn 
> through so much RAM just for a download?
> Thanks.


smime.p7s
Description: S/MIME cryptographic signature
___
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

[clamav-users] Freshclam memory use

2017-05-25 Thread Chris Coleman

Hello ClamAV mailing list,
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|, when there's 242 MB of free RAM available?
What can be done to improve the code so the definition updates don't 
burn through so much RAM just for a download?

Thanks.

___
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