本文介绍了IIS 7自动重新启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在IIS上部署了WCF服务. (带有[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)的BasicHTTPBinding])

I have a WCF Service Deployed on IIS. (BasicHTTPBinding with [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)])

我已经建立了自定义的内存中会话管理,现在我面临一个奇怪的问题,那就是IIS 7自动重启,甚至在EventLog中都不会引发任何类型的警告或错误.此问题导致破坏所有可用的会话.

I have built custom in-memory session management and Now I am facing a strange problem that is IIS 7 Restarts Automatically without even throwing any kind of warning or error not even in EventLog. This problem leads to destroy the all available sessions.

在使用log for net记录了Application_Start和Application_End方法后,我发现了这个问题,并且我将断点放置在application_start中,并且在测试执行之间将断点暂停了.

I discovered this issue after logging the Application_Start and Application_End methods using log for net and also i put the break point in application_start and it paused there in between test execution.

这种情况很少发生,但是我需要知道为什么会发生,以及它是否正常并且可以接受.如果没有,那么可能是什么原因.

This happens rarely but i need to know why it happens and if it is normal and acceptable or not. if not then what may be the possible reasons of this.

问候穆巴沙尔·艾哈迈德

RegardsMubashar Ahmad

推荐答案

IIS当它检测到不健康"的流程时,或者达到某些操作员可配置的限制后,便会回收工人的流程.

其中的限制是:

  • 内存阈值
  • 配置了一定数量的请求之后
  • 经过时间
  • 一天中的时间

更多信息

这篇关于IIS 7自动重新启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-25 17:25