ASP.NET“会话超时”计数器(perfmon.exe)

发布于 2024-10-16 11:19:19 字数 415 浏览 0 评论 0原文

我目前正在对 ASP.NET 应用程序进行负载测试。我正在向应用程序上的 500 个用户收费, 当它运行时,我在 perfmon.exe 控制台中检查 Web 服务器上的“会话活动”和“会话超时”计数器。

在我的 web.config 中,会话超时为 3 分钟(用于测试目的)。

因此,随着测试的进行,“Sessions Actives”计数器保持在大约 900 个活动会话上,我认为这是正常的,因为有 500 个活动用户和大约 400 个其他会话尚未超时。

但是当我查看“会话超时”计数器时,它不断增加。当负载测试完成时,它会逐渐下降。

这个计数器到底是什么?据我了解,这是尚未清理的已弃用会话(由垃圾收集器?)并且仍在使用内存。

由于我们的应用程序使用大量内存,因此我试图准确找到该内存在哪里

I'm currently load testing an ASP.NET application. I'm charging with 500 users on the app,
and while it's running I'm checking, in a perfmon.exe console, the "Sessions Actives" and "Sessions Timed Out" counters on the web server.

In my web.config, the session timeout is 3 minutes (for test's purpose).

So as the test goes, the "Sessions Actives" counter stays on about 900 active sessions, which I assume is normal because of the 500 active users and about 400 other whose sessions haven't timed out yet.

But when I look at the "Session Timed Out" counter, it countinuously increases. It just goes down gradually when the load test finishes.

What is this counter exactly? As I understand it, it's the deprecated sessions that have not been yet cleaned up (by the garbage collector?) and are still using memory.

Since our application is using a huge ammount of memory, I'm trying to find exactly where is that memory.

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

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

发布评论

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

评论(1

℡Ms空城旧梦 2024-10-23 11:19:19

计数器似乎表明正在发生什么。即,当活动会话启动时,活动计数器会转到正确的数字。在某个时刻,它们开始减少,并触发会话超时增加(即,会话被 ASP 立即取消) .NET 基础设施)。我不确定您期望看到什么。我建议阅读以下章节:151617改进.NET 应用程序性能和可扩展性一书。他们在这方面很有启发性。

The counter seems to be indicating what is happening. i.e. As the sessions that are active start up, the counter for active goes to the right number.. and at some point they start to die down and they trigger the session time out to increase (i.e. the sessions that are summarily dismissed by the ASP.NET infrastructure). I am not sure what you are expecting to see. I recommend reading the chapters, 15, 16 and 17 of the Improving .NET Application Performance and Scalability book. They are pretty enlightening in this regard.

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