By Bob Flora
I have a Ubuntu 18.04 droplet that occasionally experiences high load averages for brief periods, but the DO monitoring charts show low and steady CPU usage, steady disk I/O, steady traffic, and a small bump in RAM (probably due to extra apache processes waiting to run). So, everything looks normal except for the load averages. If the load averages go up into the 20s then I can see significant impact on page load times.
These episodes are not associated with high traffic, and they don’t normally last for more than a few minutes so it’s hard for me to catch them as they’re occurring. However, the one time I managed to do so I used the “top” command and saw extra apache processes (as expected during high load), but nothing else looked unusual. Nothing suspicious appears in syslog.
Any recommendations on what I need to do to troubleshoot this problem?
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!
Hello, @businessbcbdbe0eab0de5765a
What you can do is to check the Apache error log and see if the Apache workers have been exceeded as this will explain the spikes in the memory usage. You can check this with the following command:
grep -i workers $APACHE_LOG_DIR (usually it’s /var/log/apache2/error.log)
If the apache workers have been exceeded then you can tweak the value in the apache configuration in order to sort the issue. The exact value you need to look for is MaxRequestWorkers
I will also recommend you to check on this tutorial as you may find it useful:
https://www.digitalocean.com/community/tutorials/how-to-monitor-cpu-use-on-digitalocean-droplets
Hope this helps.
Regards, Alex
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.