request_time exstreamly larger than upstream_response_time for some queries when using fastcgi

Tian Chao tchao.china at yahoo.com
Thu Nov 22 07:02:36 UTC 2012


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 at roze.lv>
To: nginx at 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 at nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20121121/c9751f24/attachment.html>


More information about the nginx mailing list