Image serving via nginx are too slow, why ?

Dewangga dewanggaba at xtremenitro.org
Tue Aug 26 01:12:18 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Did you try using aio? Try turn off sendfile and tcp_nopush also.
Here is my patch http://fpaste.org/128456/40901547/raw/

On 8/26/2014 03:51, tristanb wrote:
> Hello,
> 
> Before posting, i've done a lot of google search, and i found other
> similar issue without any solutions. So, Why nginx is slow serving
> files in my case ?
> 
> Part 1. The hardware
> 
> Intel Xeon E5-1620v2 4c/8t 3,7 GHz 32 Go DDR3 ECC 1600MHz 3xSSD
> Intel 160Go 1 Gbps
> 
> The load average is 0.13 I've been reproducing the "slow loading
> image effect" with all kind of traffic situation from 0 to a lot. I
> got 2 new servers load balanced, I disabled the 2nd server, and it
> had no effect at all.
> 
> Part2. The software
> 
> Nginx 1.6.1 PHP-FPM 5.5.16 Varnish 4, but the cache is disabled for
> all requests in the .vcl
> 
> My nginx configuration can be found on this gist : 
> https://gist.github.com/tristanbes/ade26d83ce154f7d2630 My nginx
> vhost can be found there : 
> https://gist.github.com/tristanbes/f15e9269cf63b5a52340
> 
> You can "feel" the problem for example here:
> http://bentm.webfactional.com/
> 
> It's not my website, but I took it from a post describing the same
> problem.
> 
> A 2 Mo PDF takes 8 sec to load on any connection internet (from
> 20Mbps @work to my personal fiber 1Gbps) 
> http://i.imgur.com/cxYRm8c.png
> 
> I'm sure I did tweaked too much without really knowing which side
> effect it could have. Can you help me on this please ?
> 
> Posted at Nginx Forum:
> http://forum.nginx.org/read.php?2,252816,252816#msg-252816
> 
> _______________________________________________ nginx mailing list 
> nginx at nginx.org http://mailman.nginx.org/mailman/listinfo/nginx
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)

iQEcBAEBAgAGBQJT+97xAAoJEF1+odKB6YIx39YIAJKyIHFf7uGpj2j4vMYOqMZA
BK3dY1IpLQXpJE8WJwghvLmrLguM8WffE2facAo4YZsxvGUIce1+3qFwsWaSqJXy
7RM1pwWs6hDw+LhzyJYdtPLt/xnbdGiXQAPyAKD8OE51U1EFskVkLILr+MwTahLS
UeexniI5+yfLpGP4KEbg2fWu7WJh7wljAzvFwsgI2VqnleI7TQbUNVwylwzMmkd3
luODSyKcDIDW9aCN5Kh0U9DVIpx0nBJE+NyASZsBHgNxawRF8YdPtN9mI7b8Rvb2
DSO2fa8U4rKMwJDGRYA61xuq01AJigLUcgcRs5+hoNnmYpHNzVmEjWg34IbEwac=
=l542
-----END PGP SIGNATURE-----



More information about the nginx mailing list