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
source to share
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
source to share
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.
source to share