IIS 7 automatically restarts

I have a WCF service deployed in IIS. (BasicHTTPBinding with [AspNetCompatibilityRequirements (RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)])

I created my own in-memory session management and am now facing a strange problem that IIS 7 restarts automatically without even throwing any warnings or errors even in the EventLog. This issue destroys all available sessions.

I discovered this issue after registering the Application_Start and Application_End methods using log for the network, and also I put a breakpoint at application_start and paused there between test execution.

This rarely happens, but I need to know why it happens and if it is normal and acceptable or not. if not, what could be the possible reasons for this.

Mubashar Ahmad's relationship

+2


source to share


3 answers


IIS recycles worker processes either when it detects an "unhealthy" process, or after reaching certain operator-defined limits.

Among the limits:



  • memory threshold
  • after configured number of requests
  • past time
  • Times of Day

more details

+2


source


Is it possible to recycle an application pool? IIS 6 has a default of 1740 minutes. As far as IIS 7 goes, I think you will have the same setup? I know that in IIS 6 this "event" is not logged as "n error".



+4


source


Session timeout (which is separate for application pool utilization) is set to 90 minutes by default, this is set at the application level. This also means that whatever is held in the Session will be blown up at that time. You can set it through the properties of the virtual directory / application in IIS6 and through the SessionState-> Open Feature in IIS7 (when you have selected the application).

Also note that the session timeout can be set via the web.config of the ASP.Net application if your web services will be hosted in one of them.

0


source







All Articles