request_time exstreamly larger than upstream_response_time for some queries when using fastcgi
tchao.china at yahoo.com
Thu Nov 22 07:02:36 UTC 2012
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?
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.
nginx mailing list
nginx at nginx.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx