AcquireRequestState 中的长时间延迟

long delays in AcquireRequestState(AcquireRequestState 中的长时间延迟)
本文介绍了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 中的长时间延迟的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

c# Generic Setlt;Tgt; implementation to access objects by type(按类型访问对象的C#泛型集实现)
InvalidOperationException When using Context Injection in ASP.Net Core(在ASP.NET核心中使用上下文注入时发生InvalidOperationException)
how do i pass parameters to aspnet reportviewer(如何将参数传递给aspnet report查看器)
Bind multiple parameters from route and body to a model in ASP.NET Core(在ASP.NET Core中将路由和主体中的多个参数绑定到一个模型)
Custom model binding in AspNet Core WebApi?(AspNet Core WebApi中的自定义模型绑定?)
How to minify in .net core mvc view?(如何在.Net核心MVC视图中缩小?)