Re: Static files bad loading time

2015-05-27 Thread Francis Daly
On Thu, May 07, 2015 at 01:56:02PM -0400, grigory wrote: Hi there, > > Can you tell from nginx logs whether the slowness is due to > > slow-read-from-disk, or slow-write-to-client, or something else? > > Could you please tell me how to check this out? > My nginx logs do not contain this sort of

Re: Static files bad loading time

2015-05-08 Thread shahzaib shahzaib
Right, thanks. Btw, we used another nginx official doc for optimization and the most effective optimization parameter was tweaking the backlog from default 512 to 4096 in nginx listen directive. http://nginx.com/blog/tuning-nginx/ Regards. Shahzaib On Fri, May 8, 2015 at 6:18 PM, Valentin V. Ba

Re: Static files bad loading time

2015-05-08 Thread Valentin V. Bartenev
On Friday 08 May 2015 18:05:51 shahzaib shahzaib wrote: > Well, reducing keepalive_timeout and increasing the values of > worker_connections resolved our issue. Following is the reference we used > to tweak nginx config : > > http://blog.martinfjordvald.com/2011/04/optimizing-nginx-for-high-traffi

Re: Static files bad loading time

2015-05-08 Thread shahzaib shahzaib
Well, reducing keepalive_timeout and increasing the values of worker_connections resolved our issue. Following is the reference we used to tweak nginx config : http://blog.martinfjordvald.com/2011/04/optimizing-nginx-for-high-traffic-loads/ Thanks. Shahzaib On Fri, May 8, 2015 at 4:42 PM, Valent

Re: Static files bad loading time

2015-05-08 Thread Valentin V. Bartenev
On Thursday 07 May 2015 23:27:44 shahzaib shahzaib wrote: > Hi, > >There are some tweaks required to nginx configurations. If the same > image which usually takes second to response can takes upto 10-20 seconds > to load, the wide guess would be exceeding concurrent connections at peak > traff

Re: Static files bad loading time

2015-05-07 Thread shahzaib shahzaib
Hi, There are some tweaks required to nginx configurations. If the same image which usually takes second to response can takes upto 10-20 seconds to load, the wide guess would be exceeding concurrent connections at peak traffic. The directive worker_rlimit_nofile value is set much lower as comp

Re: Static files bad loading time

2015-05-07 Thread grigory
Hi Francis, > Can you tell from nginx logs whether the slowness is due to > slow-read-from-disk, or slow-write-to-client, or something else? Could you please tell me how to check this out? My nginx logs do not contain this sort of information. > Can you find any pattern in the requests which res

Re: Static files bad loading time

2015-04-30 Thread Francis Daly
On Sun, Apr 26, 2015 at 06:11:32AM -0400, grigory wrote: Hi there, > # Static files location > location ~* > ^.+\.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|wav|bmp|rtf|js)$ So - you have your configuration; you make a request; sometimes you get the

Re: Static files bad loading time

2015-04-27 Thread grigory
So, Francis... Do you have any idea on my problem? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,258372,258406#msg-258406 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Static files bad loading time

2015-04-26 Thread grigory
Sorry, I forgot to add the following part of the config (from server's block): # Static files location location ~* ^.+\.(jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|wav|bmp|rtf|js)$ { if ($args ~* "^download") { add_heade

Re: Static files bad loading time

2015-04-25 Thread Francis Daly
On Sat, Apr 25, 2015 at 02:01:33PM -0400, grigory wrote: Hi there, > However, sometimes my Nginx 1.4.2 loads in a browser 1MB image for like > 10-30 seconds. Sometimes it takes 2 seconds like it should. > Does anybody know what causes this loading lag? The configuration you show doesn't seem to

Re: Static files bad loading time

2015-04-25 Thread grigory
I use CentOS 6.6. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,258372,258373#msg-258373 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Static files bad loading time

2015-04-25 Thread grigory
Hey guys, I have a dedicated server at iWeb.com (i3-540 + 8GB RAM). It has free bandwidth, average load is around 0.05-0.2 during the day and I/O wait ratio is very low now. However, sometimes my Nginx 1.4.2 loads in a browser 1MB image for like 10-30 seconds. Sometimes it takes 2 seconds like it