如何调试 Asp.net mvc 挂起/无响应

发布于 2024-12-11 05:26:58 字数 238 浏览 4 评论 0原文

我有一个有时会挂起的 asp.net mvc 站点。知道如何调试这个吗?它不会在本地调试服务器上本地发生,只有当我上传到远程测试服务器时才会发生。

为了更好地解释:我有一个页面,一旦加载就会触发 6 个 ajax 请求。我看到其中两个总是挂起。然后,如果我更改参数,一切都会加载正常。

另一个页面仅在加载后才会触发请求,并且大多数情况下都有效,但有时也会挂起。在此页面中,我发现它经常挂在最消耗的请求上,“更简单”的请求响应良好。

I have a asp.net mvc site that sometimes hangs. Any idea how to debug this? It doesn't happen locally on the local debug server, only when i upload to a remote test server.

To explain better: I have a page that triggers 6 ajax requests as soon as it is loaded. I see that 2 of them always hangs. Then if i change the parameters everything loads ok.

Another page triggers the requests only after it's loaded, and most time works, but sometimes it hangs as well. In this page i see that it oftenly hangs on the most consuming requests, the "easier" ones respond well.

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

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

发布评论

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

评论(1

却一份温柔 2024-12-18 05:26:58

我将在提供请求的服务器端页面中设置一些日志记录——至少这样您就可以开始收集有关相关例程的一些数据。

I would set up some logging in the server-side page that provides the request-- at least then you can start to gather some data on the routines in question.

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