Image serving via nginx are too slow, why ?
nginx-forum at nginx.us
Mon Aug 25 20:51:42 UTC 2014
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
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
Varnish 4, but the cache is disabled for all requests in the .vcl
My nginx configuration can be found on this gist :
My nginx vhost can be found there :
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)
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
More information about the nginx