Question

How can I find out why my CPU Is spiking to 100%?

  • Posted on January 28, 2014
  • thomasAsked by thomas

I have one droplet that has 7 WordPress installs on it. Most sites get very little traffic so resources are not an issue.

However, every so often the CPU spikes to 100% and stays there. The only thing I can do is log into the website and power cycle the machine.

https://cloudup.com/cXgNTHGW6cT

How can I find out what’s causing this?

Show comments

Submit an answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

I believe that all of those reports of “out of memory” are related to lack of virtual memory. Digital Ocean droplets don’t come with swap partitions enabled by default, so the kernel just kill the process when it’s not possible to allocate more RAM for it

I had problems with a long-running Java process I developed and the solution was pretty simple.

Check the links below to enable it on Ubuntu or CentOS:

https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04

https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-centos-7

Woo for the necro-posting.

I had this issue on one droplet a few months ago; I scaled up the droplet and hacked the MySQL config to pieces just to get the site working. Running another droplet, this time hosting multiple sites on it (all the same company) and constant disconnects.

Constantly breaking tables. I’m not even sure it is to do with the plugins/themes like I first thought.

It seems to be a running thing with DO droplets lately, as another client has had issues a few weeks back. And there is the whole “blanket blacklist DO IPs” too.

I have also the same issue. CPU cross 100% even if I open my site pages in mobile for viewing. mean I am only the user at that time on my site. still it. I have two magento 2 sites with 50 GB Space, 2 GB RAM and 2 GB Bandwidth. what should I do. each site hs only 70 to 150 products only