oderao
March 25, 2021, 9:05am
1
Hello,I recently noticed high CPU utilization on one of our servers
running htop shows fail2ban as the culprit see screenshot.
I have tried
Stopping the and restarting the fail2ban servers
rotating the auth.log file for fail2ban
deleting the fail2ban sqlite3 database
4.Rebooting the server
Also referenced the following links on the forum
Hi,
i have hight cpu usage on my server. There is one process (see screen) which is permanently taking 100% cpu. I have 4 sites in bench, but only one of them is used daily by 10 - 15 users. Is this cpu usage normal behaviour?
Now i have 4 core, and 16gb. Swap is used on 100%, and memory at least 10gb. I tried increase innodb_buffer_pool_size to 12G.
Thanks for any suggestions.
[18]
ERPNext: v11.1.17 (master)
Frappe Framework: v11.1.17 (master)
Has anyone else experienced the same issue?
How big is your actual fail2ban.log file? I had a similar situation where the file was CPU. rotated the fail2ban.log and it was instantly down to “normal”
oderao
March 26, 2021, 10:11am
3
The fail2ban.log is not up to 1mb
oderao
March 26, 2021, 12:38pm
4
For anyone else having this issue,
The issue had to do with the size of access.log file in /var/log/nginx
i rotated the log by running
logrotate -f /etc/logrotate.d/nginx
sudo service fail2ban restart
4 Likes