ClamAv High memory consuption, OOm killer in action
Posted: Sat 9. Apr 2022, 12:46
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
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