在Azure探查器中AWAIT_TIME到底是什么意思? [英] what does AWAIT_TIME exactly mean in the Azure profiler?

查看:181
本文介绍了在Azure探查器中AWAIT_TIME到底是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在查看我最慢的请求之一的性能概况,并且看到AWAIT_TIME超过6秒,但是我无法获得有关此信息的更多信息.我如何确定该过程到底在等待"什么?

I am looking at my performance profile of one of my slowest requests, and I see an AWAIT_TIME of more than 6 seconds, but I am not able to get any more information regarding it. How do I figure out what exactly the process is "waiting on"?

推荐答案

来自 AWAIT_TIME表示代码正在等待另一个任务完成.这通常在C#'await'语句中发生.当代码执行C#等待"时,线程将展开并把控制权返回给线程池,并且没有任何线程被阻塞,等待等待"完成.但是,从逻辑上讲,执行等待的线程被阻塞"以等待操作完成. AWAIT_TIME表示等待任务完成的阻塞时间.+

AWAIT_TIME indicates the code is waiting for another task to complete. This typically happens with C# 'await' statement. When the code does a C# 'await', the thread unwinds and returns control to the thread-pool, and there is no thread that is blocked waiting for the 'await' to finish. However, logically the thread that did the await is 'blocked' waiting for the operation to complete. The AWAIT_TIME indicates the blocked time waiting for the task to complete.+

BLOCKED_TIME表示代码正在等待另一个资源可用,例如等待同步对象,等待线程可用或等待请求完成.

BLOCKED_TIME indicates the code is waiting for another resource to be available, such as waiting for a synchronization object, waiting for a thread to be available, or waiting for a request to finish.

因此,它正在等待必要的继续处理.我们在上传文件时遇到了很长的AWAIT_TIME的问题,事实证明请求正在等待读取请求的流(对于我们来说是ReadAsMultiPartAsync())...如果您查看RecASPRequest中的代码, _RtlUserThreadStart,您可能是罪魁祸首...

So it's waiting on something necessary to continue with processing. We have had the same problem of long AWAIT_TIME with file uploads and it turned out the request was waiting for the Request's stream to be read (ReadAsMultiPartAsync() for us)... If you look at the code in RecASPRequest and _RtlUserThreadStart, you'll probably the culprit...

这篇关于在Azure探查器中AWAIT_TIME到底是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆