my droplet is randomly running at cpu 100% and disk I/O at 200-300 Mbps

how to identify the reason/process that making my droplet running at 100% and it throws a error 503. restarting the droplet solves this problem for a few hours and again it does it. how to view the server log. this is not a production site so no traffic at all


Submit an 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.


I could suggest following the steps here on how to find the processes that are consuming the most server resources:

Regarding your server logs, you can find them at the /var/log directory and you can use the cat or tail commands to check a specific log. For example, if you had an Nginx server and you wanted to check the last 100 lines of the Nginx log, you could use the following command:

tail -100 /var/log/nginx/access.log

Also if you have an Apache or Nginx server, you could use the following script to analyze the logs and see if there are any suspicious amount of requests coming from a specific set of IP addresses:

BASH Script to Summarize Your NGINX and Apache Access Logs

Let me know how it goes. Best, Bobby