we are having a bit of a problem with content delivery from the server (IIS7 on Windows Server 2008) that's running a couple PHP web sites. Quite often, small batches of requests end up taking a long time to complete for no apparent reason. This mostly happens
with static content, but some php page requests are also affected similarly. They show up in the request queue as being stuck in "SendResponse" stage:
Some of such stuck requests end up in the logs with "sc-win32-status" codes of 64/121/1236, which would seem to suggest the requests hitting some sort of time limit before being finally killed.
I also tried gathering some failed request logs, but all request steps there are shown as taking 0ms, with the last one being "GENERAL_RESPONSE_ENTITY_FILE" or "GENERAL_RESPONSE_ENTITY_BUFFER". Is this normal, or should all requests end up with the "GENERAL_REQUEST_END"
step instead?
Anyway, this is all rather puzzling to me and I can't spot any clues that would let me move forward. Is there perhaps a way to look deeper into what's happening in the "SendResponse" stage? I.e.: whether data is being sent at all, if the connection is stuck
waiting for packets from server/client side or something else entirely?
I am having the exact same issue on a production environment running an ASP.NET 3.5 application. When traffic gets high, at some point requests start queuing up in the worker process in IIS stuck in SendResponse mode. I have searched the web for solutions or
ideas, but couldn't find anything. Any help would be much appreciated! Thanks!
codemole
7 Posts
Intermittent slow loads for mostly-static content (IIS7/Win2008)
Jul 04, 2011 05:17 PM|LINK
Hi,
we are having a bit of a problem with content delivery from the server (IIS7 on Windows Server 2008) that's running a couple PHP web sites. Quite often, small batches of requests end up taking a long time to complete for no apparent reason. This mostly happens with static content, but some php page requests are also affected similarly. They show up in the request queue as being stuck in "SendResponse" stage:
REQUEST "f70000438000116a" (url:GET /gfx/public/upload/45849.JPG, time:11934 msec, client:87.59.109.41, stage:SendResponse, module:IIS Web Core)
REQUEST "fb00000180002198" (url:GET /gfx/public/upload/45844.JPG, time:11825 msec, client:87.59.109.41, stage:SendResponse, module:IIS Web Core)
REQUEST "5b0000428000080a" (url:GET /gfx/public/upload/45845.JPG, time:11809 msec, client:87.59.109.41, stage:SendResponse, module:IIS Web Core)
REQUEST "d100004280000e40" (url:GET /gfx/public/upload/47222.JPG, time:56722 msec, client:110.36.20.149, stage:SendResponse, module:IIS Web Core)
Some of such stuck requests end up in the logs with "sc-win32-status" codes of 64/121/1236, which would seem to suggest the requests hitting some sort of time limit before being finally killed.
I also tried gathering some failed request logs, but all request steps there are shown as taking 0ms, with the last one being "GENERAL_RESPONSE_ENTITY_FILE" or "GENERAL_RESPONSE_ENTITY_BUFFER". Is this normal, or should all requests end up with the "GENERAL_REQUEST_END" step instead?
Anyway, this is all rather puzzling to me and I can't spot any clues that would let me move forward. Is there perhaps a way to look deeper into what's happening in the "SendResponse" stage? I.e.: whether data is being sent at all, if the connection is stuck waiting for packets from server/client side or something else entirely?
HCamper
8048 Posts
Re:IIS7-Win-2008-PHP-FastCGI:Intermittent slow loads for mostly-static content (IIS7/Win2008),pro...
Feb 07, 2012 06:59 PM|LINK
Hi,
IIS 7-FastCGI Forums http://forums.iis.net/1104.aspx .
PHP http://forums.iis.net/1102.aspx Community: Windows-Cache-Extension
http://forums.iis.net/t/1186576.aspx Information,
Regards,
Martin Rasch
windows server 2008 php performance IIS 7 .php Cache IIS 7 Slow Performance with custom thread pool IIS 7.5 performance error
Community Member Award 2011
gallarotti
2 Posts
Re: Re:IIS7-Win-2008-PHP-FastCGI:Intermittent slow loads for mostly-static content (IIS7/Win2008)...
Feb 29, 2012 02:02 PM|LINK
SamRowe
7 Posts
Re: Intermittent slow loads for mostly-static content (IIS7/Win2008)
Mar 05, 2013 01:28 PM|LINK
Our live services are showing the same behaviour running .net 2 , 3.5 and 4 code.
I have been investigating the root cause with a simple test bench which shows the behaviour with static content on localhost.
http://forums.iis.net/t/1189936.aspx/1