Question

100% CPU load (non-stop), out of the blue. Droplet is stuck ... what to do ...

So, I’ve got this droplet running for around 3 years. It’s been running fine, but suddenly today, it’s not responsive.

The droplet is in NY3

I can’t get to the wordpress site that’s installed, and I cannot get through on SSH. Sometimes it works, but it’s incredibly slow …

I was able to get to htop and it showed me that there’s a 100% CPU load.

When I turn off the droplet and the start it again, it works for about 1 minute, before getting back to the problem situation.

This thing was working perfectly yesterday, and nothing happened between then and now …

Any tips on how to proceed ?

Show comments

Submit an answer
Answer a question...

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
September 3, 2022

Hi there,

It sounds like that you might be getting a spike in the traffic. What I could suggest is:

  • Check the processes that are using most of your resources by following the steps here:

https://www.digitalocean.com/community/questions/how-to-find-the-processes-that-are-consuming-the-most-server-resources

  • Check your Apache access lots to see if you are not getting any malicious traffic or a brute-force attack. You can use the following script to summarize your access logs: BASH Script to Summarize Your NGINX and Apache Access Logs

  • Do some general optimizations like: disable and delete all plugins and themes that you do not use, install a caching plugin like WP Super cache. Use a CDN like Cloudflare

Let me know how it goes!

Best,

Bobby