Hi there,
On Tue, 2 Mar 2021, Michael Kyriacou via clamav-users wrote:
On Tue, Mar 2, 2021 at 9:40 AM G.W. Haywood via clamav-users wrote:
On Tue, 2 Mar 2021, Michael Kyriacou via clamav-users wrote:
On Tue, Mar 2, 2021 at 4:08 AM G.W. Haywood via clamav-users wrote:
On Mon, 1 Mar 2021, Michael Kyriacou via clamav-users wrote:
... clamav 103.1 on ubuntu 20.04. I am getting “can’t allocate
memory errors” on very large files ( 10GB +). I thought clamdscan
was supposed to skip files that are larger than what you set the
maxfilesize/maxscansize to.
Unfortunately this is a known issue:
https://bugzilla.clamav.net/show_bug.cgi?id=12374
Have you tried other ways to avoid scanning huge files?
I was not aware of any other way to avoid scanning large files. Where
can I find such solutions?
... You could just arrange for all the huge files to be in some
corner of the filesystem which you don't normally scan - which begs
the questions what are you scanning, and why? ...
My scanners have 16vcpus and 64 GB Ram allocated to them. (Each) I noticed
that the clamd process actually began hanging on some of the scanners.
Then these are not real harware? If not, one of my first questions
would be if I'm getting what some supplier claims that I'm getting.
Perhaps it's only "up to" 64GB RAM, and that on a good day. Perhaps
there are restrictions on resources that you don't know about. Scans
are pretty CPU intensive, if you run many in parallel you might hit a
limit fairly easily.
... looking at the log, the only thing it says is “... sleep”.
I don't see that exact message anywhere in the ClamAV source. Please
may we see the exact log output? A few lines before and after the
"sleep" line would probably be useful.
After 5-10 minutes it will continue, and then pause again.
Do you know how I can troubleshoot this issue?
There are many ways to approach such an issue. For example using the
command-line and/or configuration file options you could tell the
scanner to log more verbosely. You also could use tools like 'top' to
observe process activity as it happens - logging the output to files
if necessary. If the CPUs are virtual you probably won't need to
check their operating temperatures (or have the ability to do so), but
I often check things like that on hardware when I give it a trashing.
Please allow me to repeat the question
what are you scanning, and why?
--
73,
Ged.
_______________________________________________
clamav-users mailing list
clamav-users@lists.clamav.net
https://lists.clamav.net/mailman/listinfo/clamav-users
Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq
http://www.clamav.net/contact.html#ml