Application_BeginRequest() 之前的 ASP.NET 间歇性延迟

发布于 2024-09-24 21:19:23 字数 256 浏览 0 评论 0 原文

我正在使用 ASP.NET MVC 2。在调试模式下,在 Global.asax 中命中 HttpApplication_BeginRequest() 之前,对服务器的每个其他请求都会有非常一致的 5-10 秒延迟,

这与每个其他请求完全相同。在发布模式下它总是很快,但它导致我在调试模式下测试时出现问题。我查看了调用堆栈,但 HttpApplication_BeginRequest() 之前的唯一内容是“外部代码”,所以我无法判断发生了什么。我如何找出导致管道滞后的原因?谢谢。

I'm using ASP.NET MVC 2. When in Debug mode, there is a very consistent 5-10 second delay on every other request to the server before HttpApplication_BeginRequest() is hit in Global.asax

It happens exactly every other request. In Release mode it is fast always but it's causing me problems testing things in Debug mode. I looked at the call stack but the only thing before the HttpApplication_BeginRequest() is "External Code" so I can't tell what's happening. How can I find out what is introducing this lag in the pipeline? Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

时光倒影 2024-10-01 21:19:23

ASP.NET 不是每 15 次点击就回收应用程序域吗?我曾经遇到过这样的情况,我意识到由于使用通配符 IIS 映射,页面上的所有资源调用(即脚本、图像等)都通过 ASP.NET httphandler 进行,从而导致了 15 次点击计数。这有道理吗?

Doesn't ASP.NET recycle the App Domain every 15 hits? I once had a situation where I realised that due to using wildcard IIS mapping, all resource calls on the page (i.e. for script, images etc.) were going via the ASP.NET httphandler and thus contributing to the 15-hit count. Does that make sense?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文