Question

Sudden Spike in CPU, Disk and Memory Use making my website unreachable

I experience this problem a few times a week where there is a sudden spike in memory, cpu, and disk use that makes my website unreachable till i reboot.

The increase in the resource use stays up for about a minute but permanently blocks access to the website. Could this be a ddos?

Sorry i cant provide more detail unless i could attach a picture of my graphs but i think ive explained it fairly well.


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.

Hi @dzagey

How many times each week? And if it’s only a minute, then it sounds more like an update checker running, but that shouldn’t block your web server.

What do you mean with “permanently blocks” - every time the spike happens, then your website is down until you do something manually?

Can you check your /var/log/apache2/access.log and /var/log/syslog from the last time the spike happened - do you see excessive website visits or anything strange in syslog?

It would be helpful if you could monitor the server processes while the spike happens. You can do that with top (or htop if you have that installed).

@dzagey

We cannot help you if you do not provide more info, Can you access your droplet while the website is not reachable?

If you can provide the output of these commands:

top to get an idea of who is using your processor the more.

top -o +%MEM to get an idea of who is using your memory more.

Provide the error log of your web server and database server.

Also what do you exactly mean by UNREACHABLE does it send internal server error response or no response at all?

Thanks.