Recently my websites appear to be getting hit by something. They slow down and become unresponsive. After I terminal connect to the server, I see that all resources are maxed out, 100% of CPU, Memory, and Swap memory.
This is starting to happen once a week and it continues for several hours and then things return to normal. However, the frequency is increasing and it's starting to really annoy me. I'm enough to be dangerous, but this is not my area of expertise. I basically built this LAMP server on a digital ocean droplet and added Sentora onto it to help make things easier to manage.
So I'm comfortable in linux at the command prompt and making changes, etc. I just don't have the first idea about how I find out what is happening and how to stop it. I assume I am just being hit by some Chinese bot or something, other than just blocking the entire country of China (which I kind of don't mind doing) through IP, how can I find out what's happening and stop it?
Here is a screenshot from my terminal window of htop. I also have fail2ban installed on this server and configured. It helped in the past when I was being hit by bots and malicious people in China and Russia to try to hack FTP, mail, and SSH ports, however, it doesn't seem to be helping with whatever I am being hit with now.
Any help would be greatly appreciated. thanks!