Welcome! Log In Create A New Profile

Advanced

Re: request_time exstreamly larger than upstream_response_time for some queries when using fastcgi

Tian Chao
November 22, 2012 02:04AM
Hi rr,

Thanks for your explain. Some queries' body sent is just about 1K bytes, however the  $request_time is up to 40 seconds, so i think the connection is too slow. Is there a way for diagnostic what happened in that time for those slow queries? 

Thanks,
Chao


________________________________
From: Reinis Rozitis <r@roze.lv>
To: nginx@nginx.org
Sent: Thursday, November 22, 2012 12:04 PM
Subject: Re: request_time exstreamly larger than upstream_response_time for some queries when using fastcgi

>  I found some strange things in my nginx log those days. Some queries' $request_time are up to 40 seconds which their $upstream_response_time are less than 1 second.

$request_time is time since start of the request (first bytes read from client) till end of the request (last bytes are sent to client and logging happens) - so while the backend can generate the response in 1 second there might be clients with slow connections or even not waiting for the response (closing it) etc.


rr
_______________________________________________
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

request_time exstreamly larger than upstream_response_time for some queries when using fastcgi

Tian Chao November 21, 2012 12:04AM

Re: request_time exstreamly larger than upstream_response_time for some queries when using fastcgi

Tian Chao November 21, 2012 10:54PM

Re: request_time exstreamly larger than upstream_response_time for some queries when using fastcgi

Reinis Rozitis November 21, 2012 11:06PM

Re: request_time exstreamly larger than upstream_response_time for some queries when using fastcgi

Tian Chao November 22, 2012 02:04AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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