Clamav on vps 2gb ram

Hello,

Today it happened 2 times that clamav ran out of memory on my vps. This has nothing to do with hestia for sure, but i’m thinking about disable clamav.

Are there any other user here facing the same problem, and how did you solve it?

Assign some swap space

Thanks, added a 2GB swapfile and adjusted Exim config + started clamav again.

Swap in use almost immediately:

          total        used        free      shared  buff/cache   available

Mem: 1939 1427 92 42 419 317
Swap: 2047 53 1994
Total: 3987 1480 2086

Steps to activate swap (first checked if there was a swap partition: swapon --show)

  1. fallocate -l 2G /swapfile
  2. chmod 600 /swapfile
  3. mkswap /swapfile
  4. swapon /swapfile
  5. add line in /etc/fstab: /swapfile none swap defaults 0 0
  6. add line at the bottom of /etc/sysctl.d/99-sysctl.conf: vm.swappiness=10 (= start using swap when 90% of RAM is used)
  7. sysctl -p (apply swappiness

All commands in terminal under root.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.