dadaas
By:
dadaas

Load Average Cant Go Above 1.00 on Nginx

January 21, 2018 134 views
Nginx Ubuntu 16.04

Hello,
I have a droplet with 2 CPUs and 4Gb RAM, and I have noticed that it is impossible for my droplet to go above 1.00 load average. If I hit 1.00 then the server will crash, and one or more servers will need restart: Php-fpm or nginx.

Can someone explain to me why it cant go above 1.00, do I have multiprocessor system or single core? Or maybe i set something worng?

1 Answer

It isn't the load average that is causing a system crash, as load averages can be 900+ and the system will still be online, though very slow. Most likely you are running out of RAM which is causing the system to hang. You are probably using more RAM than CPU, so you run out of RAM well before there is a high load on the CPU itself which is why your load average is low but the system hangs.

Try adding swap to your server and see what happens:
https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-16-04

One of the easiest way of increasing the responsiveness of your server and guarding against out of memory errors in your applications is to add some swap space. In this guide, we will cover how to add a swap file to an Ubuntu 16.04 server. <$>[warning] [label...
Have another answer? Share your knowledge.