request_time exstreamly larger than upstream_response_time for some queries when using fastcgi

Reinis Rozitis r at
Thu Nov 22 04:04:57 UTC 2012

>  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.


More information about the nginx mailing list