Sql Server 中的 ASP.NET 会话状态服务,但 w3wp.exe #private 增加
我最近将 ASP.NET 会话状态从 InProc 移至 Sql Server 解决方案。我可以看到会话数据被插入到 Sql Server 数据库中。我正在使用“私有字节”和“监视 w3wp.exe 进程”。 “所有堆中的#字节”性能计数器。
当我浏览网站时,它会将数据放入会话中,但是私有字节计数器仍然在托管网站的服务器上攀升?我以为会话数据被写入数据库而不是存储在内存中?托管字节保持不变,并且我很确定进入会话的所有对象都是托管类型。
有谁知道为什么私有字节仍然会增加?
I have recently moved our ASP.NET session state from InProc to a Sql Server solution. I can see session data being inserted into the Sql Server database. I'm monitoring the w3wp.exe process using the "Private bytes" & "# Bytes in all heaps" performance counters.
As I navigate through the website it places data into session, however the private bytes counter still climbs on the server hosting the website? I thought the session data was being written to the database and not being stored in memory? The managed bytes remain constant, and I'm pretty sure all the objects going into the session are managed types.
Does anyone know why the private bytes would still increase?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Session 只是 ASP.Net 网站所需的众多对象之一。您已将会话存储从 RAM 移至 SQL 中,但还需要大量其他对象,更不用说渲染的页面本身了。
Session is just one of the many objects needed for an ASP.Net website. You have moved the session store out of RAM and into SQL but there are plenty of other objects required, not to mention the rendered pages themselves.