We had to restart nginx and php7.0-fpm on our droplet (Ubuntu 16.04) because it was throwing back 502 errors on all our sites. Now the sites are running slowly. When I restart the services again, they speed up briefly, only to slow down again. There isn’t an unusually high load on the droplet, and checking top doesn’t show any rogue processes.

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.

×
1 answer

Hi there @MSV,

I could suggest checking a few things:

  • Check your Nginx access log to see what requests are being handled by your web server during that time:
  • sudo tail -f /var/log/nginx/access.log
  • Check your TCP connections:
  • sudo netstat -plant
  • Try checking your processes with htop

Feel free to share the output of the commands here as well.

I believe that you might be hitting your worker connections limit for your Nginx webserver or the max requests for PHP FPM. You might have to tweak your Nginx and PHP FPM configuration files in order to increase that accordingly.

Regards,
Bobby

Submit an Answer