会话在应用程序池刷新时使用状态服务器过期
我有一个 .NET 1.1 应用程序托管在两台不同的服务器上,但在其中一台服务器上,每当回收应用程序池时,所有会话都会被删除。
两个应用程序都使用“StateServer”会话模式,据我所知,两个服务器具有完全相同的配置,并且运行“ASP .NET State Server”服务。
这是一个特别麻烦的问题,因为这个应用程序池每 2-3 小时就会回收一次(这是我必须解决的另一个问题)。
有谁知道可能会导致这种情况吗?
预先感谢,
吉恩
I have a .NET 1.1 application hosted on two different servers, but on one of them whenever the application pool is recycled, all sessions are dropped.
Both applications are using “StateServer” session mode and as far as I could tell, both servers have exactly the same configuration and have the “ASP .NET State Server” service running.
This is a particularly troublesome issue, due to the fact that this application pool is recycling every 2-3 hours (that’s another issue that I have to solve).
Does anyone have any idea of might be causing this?
Thanks in advance,
Zeon
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用性能计数器“State Server Sessions Active”监视每个 State Server 实例中的活动用户会话数,以 (a) 确保两台服务器都在使用 STate Server,并且 (b) 查看这确实是由应用程序池回收引起的。
如果这两个应用程序共享会话状态,或者它们是两个不同的应用程序,那么您的问题有点不清楚,这对于解决方案可能很重要。
Monitor the number of active user sessions in each State Server instance with the perfom counter "State Server Sessions Active" to (a) ensure that both servers are using STate Server and (b) see that this really is caused by the app pool recycling.
It's a bit umclear from your question if these two apps share session state, or if they are two different applications, that could be important for the solution.