I am having an issue with nginx webserver and can’t figure out why its happening.
I had setup a droplet with nginx + php7.4-fpm. i noticed the server has approximately 30% load but the nginx responses are taking more than 4seconds to return a response.
The server has to process 80 request/second. After setup the response time took 100ms to return a response with no load, but with load it took more than 4 seconds.
Already tried with 2 worker process (as the server has 2vCPU and 8gb ram) and 512 connection each.
Can anyone give any solution?