Waiting Synchronisation
cesar.fernandes
Posts: 4
Hi all,
during a profile of an IIS ASP.Net application, most of the time was spent in "waiting synchronisation". Investigating this time, most of it was due to WaitAny.
Therefore, I was wondering if this event could have been caused by the IIS worker threads waiting for requests to come in. Is it possible that high waiting synchronisation could mean idle worker threads?
Thank you
during a profile of an IIS ASP.Net application, most of the time was spent in "waiting synchronisation". Investigating this time, most of it was due to WaitAny.
Therefore, I was wondering if this event could have been caused by the IIS worker threads waiting for requests to come in. Is it possible that high waiting synchronisation could mean idle worker threads?
Thank you
Comments
Usually, waiting for synchronization usually means one thread started a worker thread to do something and it's waiting for that something to finish. When it comes to IIS, it's probably more likely adding up all of the time between BeginRequest and EndRequest, which is the difference between the time that a request came in and the time it was satisfied. A slow network connection may be to blame.
A bunch of threads running listeners are going to show up in Performance Profiler as "Waiting for IO to complete", so I think that's the metric you're looking for.
Looks like a sample web app of mine spends most of its' time "sleeping" so I would assume that's the time spent doing listening on the socket.
Cheers,
Cesar