By dzagey
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.
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!
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.
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).
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.