Sean Carolan
2010-Apr-13 16:56 UTC
[CentOS] ClamAV "clamscan" command using huge amount of RAM
We have a perl cgi script that accepts uploaded files and runs clamscan on them. While observing the system performance I noticed that each clamscan process consumes up to 250MB of RAM. Is this normal for ClamAV? This seems like an enormous amount of RAM, for simply scanning one file for viruses.
Eero Volotinen
2010-Apr-13 18:05 UTC
[CentOS] ClamAV "clamscan" command using huge amount of RAM
> We have a perl cgi script that accepts uploaded files and runs > clamscan on them. ?While observing the system performance I noticed > that each clamscan process consumes up to 250MB of RAM. ?Is this > normal for ClamAV? ?This seems like an enormous amount of RAM, for > simply scanning one file for viruses.I think this is normal since virus signature database takes lot of ram. -- Eero
Scott Silva
2010-Apr-13 18:46 UTC
[CentOS] ClamAV "clamscan" command using huge amount of RAM
on 4-13-2010 9:56 AM Sean Carolan spake the following:> We have a perl cgi script that accepts uploaded files and runs > clamscan on them. While observing the system performance I noticed > that each clamscan process consumes up to 250MB of RAM. Is this > normal for ClamAV? This seems like an enormous amount of RAM, for > simply scanning one file for viruses.If you do this quite often, you might be better running the clamd daemon and then using clamdscan instead... One copy of sigs is loaded, and it stays fairly constant
Kai Schaetzl
2010-Apr-13 19:31 UTC
[CentOS] ClamAV "clamscan" command using huge amount of RAM
Sean Carolan wrote on Tue, 13 Apr 2010 11:56:55 -0500:> We have a perl cgi script that accepts uploaded files and runs > clamscan on them. While observing the system performance I noticed > that each clamscan process consumes up to 250MB of RAM. Is this > normal for ClamAV? This seems like an enormous amount of RAM, for > simply scanning one file for viruses.Change to clamd (use clamdscan). Yes, clamscan needs quite a bit of RAM. Kai -- Get your web at Conactive Internet Services: http://www.conactive.com