Welcome! Log In Create A New Profile

Advanced

Possible causes for request time taking twice as long as upstream response time

Zev Blut
February 04, 2011 01:26AM
Hello,

I am doing some performance analysis for one of our sites.
In the Nginx access_log, I record the $request_time and the
$upstream_response_time.

While looking at these logs I can see that sometimes these numbers have
a fairly large delta.
For example one request's request_time is 1.553 while the
upstream_response_time is 0.864.

What are some of the potential causes for this large delta and is there
anything I can do about it?

A few reasons I can think of may be:

* The requester is on a slow internet connection : Not much I can do
about that

* Nginx is getting too many requests : Add more workers and or more
Nginx servers

Thanks,

Zev

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

Possible causes for request time taking twice as long as upstream response time

Zev Blut February 04, 2011 01:26AM

Re: Possible causes for request time taking twice as long as upstream response time

Simone Fumagalli February 29, 2012 04:40AM

Re: Possible causes for request time taking twice as long as upstream response time

Maxim Dounin February 29, 2012 06:30AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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