Welcome! Log In Create A New Profile

Advanced

Re: nginx latency/performance issues

January 04, 2018 09:22PM
Are you running apache bench on the sam for different host?
How big is the javascript file? What is your ab command line?
If your site is to be static published (which is a great idea)
why are you using SSL anyway?



> On 4 Jan 2018, at 6:12 PM, eFX News Development <dev@efxnews.com> wrote:
>
> Hello! Thanks for your response. I'm using apache bench for the tests, simply hitting the same static javascript file (no php). I was thinking since I'm using the same location and as long as the tests are repeatable, using remote testing would be ok and give more realistic results.
>
> Both apache and nginx are on the same machine, just using different IP aliases so I can connect to both via port 443. After more detective work, I think I've narrowed the problem to the aliasing. The first alias which nginx is on is slower than the second where apache is. When I placed nginx on the same ip, but different port than apache, the speed is much better. There must be some ip address priority as the nginx server is new and has zero traffic on it. This is probably out of scope, but if you have any other thoughts or advice, let me know.
>
> Thanks again for your help on this.
>
> -Ameer
>
> ----- Original Message -----
> From: Maxim Dounin <mdounin@mdounin.ru>
> To: nginx@nginx.org
> Subject: Re: nginx latency/performance issues
> Date: 1/4/18 11:52:44 AM
>
>> Depending on what and how you've measured, the difference between
>> ~128ms and ~142ms might be either non-significant, or explainable by
>> different settings, or have some other explanation. You may want
>> to elaborate a bit more on what and how you are measuring. Also,
>> you may want to measure more details to better understand where
>> the time is spent.
>>
>> In any case, both values are larger than 100ms, and this suggests
>> that you aren't measuring local latency. Likely, most of the
>> latency is network-related, and switching servers won't help much
>> here. In particular, if you are measuring latency on real users
>> within your web application, the difference might be due to no
>> established connection and/or no cached SSL session to a separate
>> static site.
>>
>> --
>> Maxim Dounin
>> http://mdounin.ru/
>> _______________________________________________
>> nginx mailing list
>> nginx@nginx.org
>> http://mailman.nginx.org/mailman/listinfo/nginx
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

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

nginx latency/performance issues

Ameer Antar January 03, 2018 09:02PM

Re: nginx latency/performance issues

Maxim Dounin January 04, 2018 11:54AM

Re: nginx latency/performance issues

eFX News Development January 04, 2018 06:14PM

Re: nginx latency/performance issues

Maxim Dounin January 04, 2018 09:00PM

Re: nginx latency/performance issues

pbooth January 04, 2018 09:22PM

Re: nginx latency/performance issues

Ameer Antar January 05, 2018 01:26AM

Re: nginx latency/performance issues

Ameer Antar January 05, 2018 01:36AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 231
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