Hi, the last couple of days I have noticed that the VPS is running at 100% CPU usage. On inspection it's because
/usr/sbin/clamd -c /etc/clamd.d/scan.conf) is using 80% CPU.
The system is configured to use the daemon, but
var/log/messages is showing
clamd: daemonize() failed: Cannot allocate memory every few seconds.
Presumably, because the daemon isn't able to start, clamAV is running in scan mode rather than daemon mode, and hence the high CPU usage.
Virtual memory is at 100% and real memory is at around 40%. The process
/usr/bin/python2 -s /usr/bin/fail2ban-server -s /var/run/fail2ban/fail2ban.sock ... is taking up 1.4GB of memory - is that normal??
The thing is, the VPS is new, fresh install only last week, and barely used. There are only a couple of very small sites on it which I have migrated, and they have virtually no traffic.
I do remember that just before this issue started appearing, there was an update available for
clamav which I actioned.
Restarting the server brings everything back to normal - 0% CPU usage, 62% real memory, 0% virtual memory - which I did yesterday, but this morning the issue reappeared.