Welcome! Log In Create A New Profile

Advanced

Re: Poor performance in serving of static files

July 18, 2011 05:08AM
On Mon, Jul 18, 2011 at 09:45:22AM +0100, Jürg Lehni wrote:
> I just did that, with no measurable improvement.
>
> I am aware that delays happen on both URLs sometimes, but reloading the full site with an emptied browser cache for example takes about one second on Apache, and double on Nginx. And without having done any proper benchmarking, hitting any of these rendered type pages after that just feels much slower and less fluid on Nginx. I am really surprised!
>
> And I am still wondering: Could it be that for a low traffic site, Apache could actually outperform Nginx noticeably?

You can try to increase number of worker_processes, say to 4-8 and
turn off sendfile. Also, I can not say how theses third-party modules
may affect in perfomance:

--add-module=/build/edmonds-nginx_1.0.4-1~bpo60+1-amd64-oC2LKI/nginx-1.0.4/debia
n/modules/nginx-development-kit
--add-module=/build/edmonds-nginx_1.0.4-1~bpo60+1-amd64-oC2LKI/nginx-1.0.4/debia
n/modules/nginx-upstream-fair
--add-module=/build/edmonds-nginx_1.0.4-1~bpo60+1-amd64-oC2LKI/nginx-1.0.4/debia
n/modules/nginx-echo
--add-module=/build/edmonds-nginx_1.0.4-1~bpo60+1-amd64-oC2LKI/nginx-1.0.4/debia
n/modules/nginx-lua
--add-module=/build/edmonds-nginx_1.0.4-1~bpo60+1-amd64-oC2LKI/nginx-1.0.4/debia
n/modules/nginx-http-push
--add-module=/build/edmonds-nginx_1.0.4-1~bpo60+1-amd64-oC2LKI/nginx-1.0.4/debia
n/modules/nginx-upload-progress
--add-module=/build/edmonds-nginx_1.0.4-1~bpo60+1-amd64-oC2LKI/nginx-1.0.4/debia
n/modules/nginx-secure-download


> Jürg
>
> On 18 Jul 2011, at 07:59, Igor Sysoev wrote:
>
> > On Mon, Jul 18, 2011 at 07:03:03AM +0100, Jürg Lehni wrote:
> >> You are right, so here it is:
> >>
> >> The same site running on Nginx:
> >>
> >> http://lineto.com:81/The+Fonts/Font+Categories/Text+Fonts/Akkurat/Normal/
> >
> > Sometimes I see some delays on both URLs.
> > You can try to increase nginx workers priority:
> >
> > worker_processes NN;
> > worker_priority -10; # man nice
> >
> >
> > --
> > Igor Sysoev
> >
> > _______________________________________________
> > nginx mailing list
> > nginx@nginx.org
> > http://nginx.org/mailman/listinfo/nginx
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx

--
Igor Sysoev

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Poor performance in serving of static files

Jürg Lehni July 17, 2011 06:20PM

Re: Poor performance in serving of static files

Ensiferous July 17, 2011 08:24PM

Re: Poor performance in serving of static files

Jürg Lehni July 18, 2011 02:04AM

Re: Poor performance in serving of static files

Igor Sysoev July 18, 2011 03:00AM

Re: Poor performance in serving of static files

Jürg Lehni July 18, 2011 04:46AM

Re: Poor performance in serving of static files

Igor Sysoev July 18, 2011 05:08AM

Re: Poor performance in serving of static files

Jürg Lehni July 18, 2011 05:18AM

Re: Poor performance in serving of static files

Maxim Dounin July 18, 2011 05:14AM

Re: Poor performance in serving of static files

Jürg Lehni July 18, 2011 05:24AM

Re: Poor performance in serving of static files

Igor Sysoev July 18, 2011 05:58AM

Re: Poor performance in serving of static files

Jürg Lehni July 18, 2011 06:02AM

Re: Poor performance in serving of static files

Jürg Lehni July 18, 2011 04:48AM

Re: Poor performance in serving of static files

Ed W July 18, 2011 08:58AM

Re: Poor performance in serving of static files

Jürg Lehni July 18, 2011 09:50AM

Re: Poor performance in serving of static files

Maxim Dounin July 18, 2011 10:10AM

Re: Poor performance in serving of static files

Jürg Lehni July 18, 2011 10:54AM

Re: Poor performance in serving of static files

Maxim Dounin July 18, 2011 11:34AM

Re: Poor performance in serving of static files

Jürg Lehni July 19, 2011 05:42AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 302
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready