DigitalOcean droplet CPU usage spikes to 100%
I have a DigitalOcean Ubuntu droplet (1 vCPU, 1GB Memory, 25GB Disk) where I’ve set up a LAMP stack and a WordPress site. Everything was running great since the setup a week ago, but this morning I woke to notice that I couldn’t access my site and the CPU Usage graph showed 100%.
I powered off the droplet and powered it back on, at which point I could again have access to my site and SSH into the droplet. I installed Wordfence plugin on my site to protect it from brute force attacks, but I suspect that’s not the case. I started monitoring the droplet with htop, which gave me the output shown in the attached image. Right off the bat, I’m seeing a lot of mysqld instances.
What should I be looking at here? Now I’m getting this issue all the time when trying to do certain things in the admin panel etc, the CPU usage spikes up to 100% and the droplet becomes unusable.