Load Average Cant Go Above 1.00 on Nginx

Posted January 21, 2018 2.3k views
NginxUbuntu 16.04

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?

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.

Submit an Answer
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:

by Justin Ellingwood
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...