Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to config application pool in IIS 7.5 automatically re-start when it was stopped?

My website was down several times per day and when I check the application pool (IIS 7.5), I saw it was stopped and I must restart it manually. How can I setup application pool so that it automatically restarts after an error?

like image 519
vNext Avatar asked Feb 14 '12 16:02

vNext


People also ask

How do I automatically restart application pool in IIS?

Configuring Auto-Start with IIS ManagerIn 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. Click OK.

Does stopping IIS stop application pools?

1 Answer. Show activity on this post. Stopping a site does not stop the application pool associated with the site. In fact the worker process serving the site still exists and the code loaded in the worker process still exists.

Why does IIS application pool stop automatically?

This issue occurs when the IIS application pool Identity Parameter is not set to NetworkService. To resolve this issue, change the Identity parameter to NetworkService in the IIS Manager for Windows Server: Select the Advanced Settings for the DefaultAppPool.

Does restarting IIS restart app pool?

Does IISRESET recycle the application pools? The correct answer is no. Instead, IISRESET causes the shutdown of all active IIS worker processes, kills them if they do not stop in time.


1 Answers

You will need to change the startMode for the application pool your website is running on from onDemand to AlwaysRunning. By default IIS sets all application pools to onDemand.

  1. In IIS Manager, click computer name in the Connection pane.
  2. Switch to Features View if the view is not active.
  3. Double-click Configuration Editor in the Management section of the Features View.
  4. Click the down-arrow for the Section field, expand system.applicationhost, and then click application pools.
  5. Click (Collection) and then click ellipses (…) next to the field that shows the count.
  6. In the Collection Editor, select the application pool for which you want to configure the startMode attribute.
  7. In the Properties window at the bottom, set the value of startMode attribute to AlwaysRunning.

Source: http://msdn.microsoft.com/en-us/library/ee677285%28v=azure.10%29.aspx

In IIS 8 and above, the start mode setting is now directly available from the Application Pool's Advanced Settings.

like image 169
Chaoix Avatar answered Oct 07 '22 22:10

Chaoix