ASP.NET requests are queued, can I determine what these requests are?

It seems useful to find out what requests are currently in the queue when the queue is blocked. Do I have any way to find out information about them? e.g. request url, client ip, cookie, body ...

+4
source share
2 answers

You can view the ASP.NET trace in the interim. It will list such things as page processing time, request request, requested page, as well as currently used sessions, form, request, and application variables.

However, they were all recorded after the request was submitted, so the update in real time is not displayed, but it should help you see that

+1
source

Do I have any way to find out information about them?

Technically slow queries will have a long duration in your IIS logs. Use LogParser to find out which requests took the longest, and use the maximum time along with the standard deviation for in-place requests that could be queued.

Using LogParser and this request

/* Returns the number of times a particular page (in this case .as* files) was hit, with the average, minimum, and maximum time taken, along with the standard deviation. */ SELECT TO_LOWERCASE(cs-uri-stem) AS csUriStem, COUNT(*) AS Hits, DIV ( MUL(1.0, SUM(time-taken)), Hits ) AS AvgTime, SQRROOT ( SUB ( DIV ( MUL(1.0, SUM(SQR(time-taken)) ), Hits ) , SQR(AvgTime) ) ) AS StDev, Max(time-taken) AS Max, Min(time-taken) AS Min, TO_REAL(STRCAT(TO_STRING(sc-status), STRCAT('.', TO_STRING(sc-substatus)))) AS Status, Min(TO_LOCALTIME(date)) AS LastUpdate FROM '[LOGFILEPATH]' WHERE cs-uri-stem like '%.as%' GROUP BY TO_LOWERCASE(cs-uri-stem), TO_REAL(STRCAT(TO_STRING(sc-status), STRCAT('.', TO_STRING(sc-substatus)))) HAVING COUNT(*) > 2 order by AvgTime desc 
0
source

All Articles