Report this

What is the reason for this report?

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

Posted on January 28, 2014

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?



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!

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.

Anyone find a solution to this with a WP install. I have a WP site with no traffic or DNS even pointing to the site, doesnt matter if I use WP default 2016 theme or an optimized custom theme, after a day or two it just spikes to 100% and I have to reboot it. I installed via server pilot and have about 10 other accounts that work fine, this one I have recreated the droplet 3 times and still see this issue, its like its only on this account?

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

When I try to SSH in, it just sits there and waits for an opening to connect. Which doesn’t seem to ever happen.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.