droplet excessive usage issue

July 22, 2019 223 views
DigitalOcean Nginx Ubuntu 18.04

i have basic droplet in which i am hosting website. i see spikes in Disk I/O in all of sudden and then ram usage goes down to 0 and same goes for Memory and CPU and after a min it goes back to normal. i have checked nginx logs if some application is crashing, there were few errors which i have already solved those were related to missing images, but i am not able to find any root cause of it or the process which is causing it.

2 comments
1 Answer

Hello,

Try checking your Nginx access logs, maybe there is some malicious activity hitting your site which causes the problem.

You could try using this bash script to summarize your access logs, it looks like it’s for apache but maybe it would work for Nginx as well as the access logs should be in the same format:

Access logs summary

Let me know how it goes!
Bobby

Have another answer? Share your knowledge.