会话结束时 StateServer (aspnet_state.exe) 是否应该释放 RAM?

发布于 2024-09-16 02:33:00 字数 296 浏览 0 评论 0原文

我注意到 StateServer 服务只会增加内存使用量。

当用户注销时,会话结束:

Session.Clear()
Session.RemoveAll()
Session.Abandon()

我假设 StateServer 随后会释放一些内存,但实际上会消耗更多内存。

web.config 中,我将超时设置为 20 分钟。会话在 20 分钟无活动后会超时,但 StateServer 在超时时不会释放任何内存。

这是正常行为吗?

I am noticing that the StateServer service only grows in memory usage.

When a user logs out the session is ended with:

Session.Clear()
Session.RemoveAll()
Session.Abandon()

I assumed that StateServer would then release some memory, but it will actually consume a bit more.

In web.config I have the timeout set to 20 minutes. The sessions do time out after 20 minutes of no activity, but StateServer doesn't release any memory when they do.

Is this normal behavior?

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文