0

I just switched from Apache to debian 7.6 nginx php-fpm and after running all kind of optimisations it seems that it takes a lot longer than usual to display images :

The application is extremely fast (PHP side), I went from 1sec load time, to <500ms, the only problem are the images takes too much time to load for no valid reason.

enter image description here

Examples :

50KB => 800ms recieving

or sometimes, just for an 32x32 icon, it takes 700ms "waiting" before recieving. It feels like a 56K modem displaying "progressivly" the images.

My guess would be that I screwed up some settings since the hardware is not suspected (2servers 8CPU Xeon, 32Gb Ram, 1Gbps network, load avg: 0.13, SSD servers)

The 2 server are load balanced, meaning that all images are randomly downloaded from one or the other server (no difference) for the same master request.

PS: Before switching to nginx, we had bad hardware, bad network and still, the images were loading a lot faster than now.

Why the image are taking so long to load? An example can be found here (http://sarl-hensgen.fr/)

Tristan
  • 488
  • 2
  • 9
  • 26

0 Answers0