AcquireRequestState 中的长时间延迟 [英] long delays in AcquireRequestState

查看:27
本文介绍了AcquireRequestState 中的长时间延迟的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用性能监控工具New Relic"我看到AcquireRequestState"偶尔(但太多)长时间延迟.我说的是 10、20 秒的延迟,有时是几分钟.

Using performance monitoring tool "New Relic" I am seeing occasional (but too many) long delays in the "AcquireRequestState". I am talking about 10, 20 second delays, sometimes minutes.

我知道我们还没有为这个事件编写我们自己的事件处理程序.

I know we have not written our own event handlers for this event.

我从哪里开始寻找这些延迟的原因?到目前为止,我在 msdn 上找到的少量信息没有帮助.

Where do I even begin looking for the cause of these delays? The little information I have found so far on msdn has not been helpful.

推荐答案

今天早些时候,当我们的一个 ASP.NET 应用程序在特定页面上出现性能问题时,我的团队看到了 NewRelic 报告的这种AcquireRequestState"延迟.

My team saw this "AcquireRequestState" delay reported by NewRelic earlier today when one of our ASP.NET applications was having performance problems on a particular page.

事实证明,根本原因是对我们最近部署到 SQL Server 数据库的存储过程进行了更改,这无意中导致该存储过程需要很长时间才能执行.存储过程作为显示存在性能问题的页面的一部分被调用.

The root cause turned out to be a change to a stored procedure that we'd recently deployed to our SQL Server database, which was inadvertently causing that stored procedure to take a very long time to execute. The stored procedure was called as a part of displaying the page that was having the performance issue.

我们能够通过识别和修复存储过程的性能问题来解决该问题.来自 NewRelic 的AcquireRequestState"问题被证明是无关紧要的;这是问题的症状,而不是原因.

We were able to resolve the issue by identifying and fixing the performance problem with the stored procedure. The "AcquireRequestState" issue from NewRelic turned out to be irrelevant; it was a symptom of the problem, rather than the cause.

这是在 Windows Server 2008 上运行的 ASP.NET 4.5 应用程序上.

This was on an ASP.NET 4.5 application running on Windows Server 2008.

tl;dr: NewRelic 报告的AcquireRequestState"延迟可能是其他一些问题的副作用,这些问题导致您的 ASP.NET 应用程序中的一个或多个页面和/或 AJAX 请求加载需要很长时间.

tl;dr: The "AcquireRequestState" delay reported by NewRelic may be a side effect of some other problem that's causing one or more of the pages and/or AJAX requests in your ASP.NET app to take a long time to load.

这篇关于AcquireRequestState 中的长时间延迟的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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