IIS 7 中的经典 ASP 会话/IIS 重置错误?
我有一个在 IIS 7 上运行的经典 asp 应用程序。该网站使用全局 ASA(Application_OnStart
和 Session_OnEnd
,其他未使用)
问题是这样的。当一个用户登录/注销时,有时整个站点会执行某种 IIS 重置,并且该站点的所有访问者的会话都将被重置。如果有任何访客登录,系统会将其踢出,并且必须重新登录。
有某种活动会触发此批量会话重置,或者更好的是,触发 IIS 重置,因为它只是有时会发生。我不确定是什么原因造成的。有什么建议吗?
I have an application in classic asp running on IIS 7. The website uses global ASA (Application_OnStart
and Session_OnEnd
, the others are not being used)
The problem is this. When one user logs in/out, sometimes the entire site does some sort of IIS reset and all the visitors of that site will have their sessions all reset. If any visitor was logged, it kicks them out and they have to login again.
There is some sort of activity triggering this mass session reset, or better yet, IIS reset, because it only happens sometimes. I am not sure what could be causing it.. Any suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在 IIS 管理器中对相关应用程序池使用“回收...”操作来检查回收条件。
任何导致应用程序池回收的行为都会导致所有当前会话的丢失。使用同一对话框打开回收记录(如果尚未打开)。
使用事件日志跟踪任何回收及其原因。
Use the "Recycling..." action on the relevant Application pool in IIS Manager to check the Recycling conditions.
Anything that causes recycling of the application pool will result in the loss of all current sessions. Use the same dialog to turn on logging of recycles (if not already on).
Use event log to track any recycles and their cause.
Internet 信息服务 (IIS) 应用程序池可以定期回收,以避免可能导致应用程序崩溃、挂起或内存泄漏的不稳定状态。请在 technet 上查看此事件 ID 。它解释得更多一些。
如果您禁用回收设置并且您的应用程序有错误,那么您的网站很可能会崩溃。最近我还增加了网站的会话超时,但无论 ilde 超时如何,它都会在 12:45 超时。因此,我将非营业时间的回收设置改为 20:00。这样它就可以清除所有不需要的应用程序池。
Internet Information Services (IIS) application pools can be periodically recycled to avoid unstable states that can lead to application crashes, hangs, or memory leaks. Please check this event id on technet. It explains a bit more.
If you disable recycle settings and your application is buggy then there is lots of chances of your website getting down. Recently I also increased the session timeout of my website but it was timing out 12:45 irrespective of ilde time out. Hence I shifted the recycle settings to 20:00 during non buiness hours. So that it can clear all the unwanted app pools.