ClamAv High memory consuption, OOm killer in action

Have you discovered a bug? Tell us about it.
Post Reply
TLoF
Posts: 3
Joined: Fri 21. Feb 2020, 11:24

ClamAv High memory consuption, OOm killer in action

Post by TLoF »

Server operating system + version
Debian 11.3 64bit

Server virtualization technology used
Proxmox

KeyHelp version + build number
KeyHelp 22.0 (Build 2393)

Problem description / error messages
When the clamav update, the server run out of memory, and the OOm killer randomly kill something. If it is an fpm process it is not a problem, if it is a mysqld process it is a problem.

Expected result
Everything working normal

Actual result
Mysqld Killed by OOm killer

Steps to reproduce
4 GB ram, no swap, random event.

Additional information
Debian 11.3, fresh install, two sites, both run php7.3.

There is a new switch to ClamAV called ConcurrentDatabaseReload If it sets to no, it reduce the memory consuption on new updates. I suggest it will be a default, or a configurable item.
https://blog.clamav.net/2020/09/clamav- ... eased.html
User avatar
24unix
Posts: 1560
Joined: Sun 21. Jun 2020, 17:16
Location: Kollmar
Contact:

Re: ClamAv High memory consuption, OOm killer in action

Post by 24unix »

If you have no option to increase RAM, use a swap partition or file of at least 8 GB.
mfg Micha
--
If Bill Gates had a nickel for every time Windows crashed …
… oh wait, he does.
User avatar
Alexander
Keyweb AG
Posts: 3811
Joined: Wed 20. Jan 2016, 02:23

Re: ClamAv High memory consuption, OOm killer in action

Post by Alexander »

Hello,

this is not an issue of KeyHelp.

By the way, you can turn ClamAV email checks off, which should save you lots of RAM.
Go to KeyHelp Admin Area -> "Configuration" -> "Email Server" -> Uncheck the "Email virus checks" checkbox
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
User avatar
BasHeijermans
KeyHelp Translator
Posts: 158
Joined: Mon 20. Jun 2022, 12:01
Location: Heppen Belgium
Contact:

Re: ClamAv High memory consuption, OOm killer in action

Post by BasHeijermans »

You can always remove the oom-killer, then the problem is gone.

Code: Select all

apt remove oomd
And remove some databases from the database-list or disable Anti-Virus.

Then your 4GB will be more then enough.
Greetings Bas.

Ik heb KeyHelp naar het Nederlands vertaald, contacteer me als er translatie fouten zijn.
(I have translated KeyHelp into Dutch, contact me if there are translation errors.)
Next version 24 of KeyHelp 100% translated.
Post Reply