Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does the application pool automatically stop? [closed]

I'm doing performance testing for my MVC internet application using IIS 7.0

Sometimes the application pool stops and I get an error saying "service unavailable" in my browser. I then have to restart the pool.

Why is the pool automatically stopped, and how can I solve this problem?

update And my log file has : "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\webengine4.dll returned an error from registration. The data is the error."

like image 881
backtrack Avatar asked Aug 02 '13 11:08

backtrack


People also ask

Why does app pool stop automatically?

Application pool '96eb1b47a3694bbd99fd7d148ab4151d' is being automatically disabled due to a series of failures in the process(es) serving that application pool. A process serving application pool '96eb1b47a3694bbd99fd7d148ab4151d' suffered a fatal communication error with the Windows Process Activation Service.

How do you know if an application pool has stopped?

In Event Viewer, expand the "Application and Services Logs" section. Then expand "Microsoft, then "Windows". Then expand "IIS-Configuration, right-click on "Operational", and choose "Enable Log". Now this log will receive events whenever an application pool is stopped or started via the IIS Management GUI.

How do I automatically restart application pool in IIS?

Open Internet Information Services (IIS) Manager. In the Connections pane, select the Application Pools node, revealing the Application Pools pane in the main view. Select the application pool for which you wish to enable Auto-Start. Locate the Start Mode option under the General group and set it to AlwaysRunning.


2 Answers

The application pool stops when it can't recover from an error/crash. Look at the Event Viewer under Windows Logs > Application to see the exception(s) that caused the crash. The Source column will mention something like ASP.NET 4.0.30319.0

screenshot of event viewer

like image 75
user247702 Avatar answered Oct 12 '22 01:10

user247702


Well, I encounter also this problem and this is what I do.

1) Open IIS.

2) Right click on your Application-Pool for the web application and select "Advanced Settings".

3) Set "Rapid-Fail Protection" -> "Enabled" to False.

If this is true, the Application pool is shut down if there are a specified number of worker process crashes within a specified time period. By default, an application pool is shutdown if there are 5 crashes within a 5 minutes interval.

I read the answer in this link [https://sharepoint.stackexchange.com/questions/22885/application-pool-is-auto-stopped-when-browse-web-application-in-iis7]

hope that this will give help to others.

like image 37
yhAm Avatar answered Oct 12 '22 01:10

yhAm