CPU usage more than doubles with antivirus running  [SOLVED]

Locked
lmarcos
Posts: 78
Joined: Sun 26. Jan 2020, 12:55

CPU usage more than doubles with antivirus running

Post by lmarcos »

Hi,

I have been noticing that the CPU usage in one of my servers increases a lot, from around 24% to 70% and above. I have been checking the crontab and the logs and the logs look quite normal to me. Looking at the maintenance intervals, it looks like the antivirus is the culprit. Is it normal that it goes up that much? I will try to reschedule some other tasks in my crontab if this is normal for the antivirus since I'm getting peaks around 135% CPU usage with some of these when combined with the antivirus.

This server is set up as follows

Operating system Ubuntu 20.04 (64-bit)
Kernel 5.4.0-52-generic
KeyHelp 20.3.1 (Build 2126) Changelog
Web server Apache 2.4.41
PHP PHP 7.4.3
Database server MariaDB 10.5.8
FTP server ProFTPD 1.3.6c
Mail transfer agent Postfix 3.4.13
Mail delivery agent Dovecot 2.3.7.2
Database administration Adminer 4.7.7
Webmail Roundcube 1.4.9
Cryptography OpenSSL 1.1.1f

Here is the last antivirus log.
====
[22-Nov-2020 01:00:06] INFO --> start av scanner
[22-Nov-2020 04:19:21] INFO --> av scanner finished successfully
[22-Nov-2020 04:19:21] INFO --> av scanner report:
------------- AV SCAN --------------
Start: 2020-11-22 01:00:06

---------- SCAN LOCATIONS ----------
/home/users
/tmp
/var/tmp

------ UPDATE VIRUS DATABASE -------
Start: 2020-11-22 01:00:06
End: 2020-11-22 01:00:08
Status: Success

------------ INFECTIONS ------------
Nothing found!

----------- SCAN SUMMARY -----------
Known viruses: 8942356
Engine version: 0.102.4
Scanned directories: 1325
Scanned files: 166164
Infected files: 0
Data scanned: 43065.51 MB
Data read: 44398.62 MB (ratio 0.97:1)
Time: 11953.729 sec (199 m 13 s)

--------------- END ----------------
End: 2020-11-22 04:19:21
Status: Success

====
User avatar
Florian
Keyweb AG
Posts: 1243
Joined: Wed 20. Jan 2016, 02:28

Re: CPU usage more than doubles with antivirus running  [SOLVED]

Post by Florian »

Hello,

yes the ClamAV consumes a lot of CPU and RAM. This is not unusual and no Bug of Keyhelp.
Mit freundlichen Grüßen / Best regards
Florian Cheno

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
lmarcos
Posts: 78
Joined: Sun 26. Jan 2020, 12:55

Re: CPU usage more than doubles with antivirus running

Post by lmarcos »

I see that I forgot to thank you, Florian.

So danke vielen.
Locked