Compartir a través de


Launch worker process (w3wp.exe) automatically as soon as application pool starts

You can set up an application pool to start automatically but the worker process (w3wp.exe) will actually be launched once a request is made to the web site. However, in some scenarios you may want to have a worker process started automatically whenever an application pool starts. This is useful especially if a worker process launches slow for some reason.

To do that you can set startMode attribute of an application pool to AlwaysRunning in your applicationHost.config. For example:

 <applicationPools>
 <add name="Default App Pool" startMode="AlwaysRunning" />
</applicationPools>

Applies To:

IIS 7.5 or newer.

--
AMB

Comments

  • Anonymous
    June 03, 2013
    Please can you help onHow to force "Start" (Autostart) for stopped Application Pool after the App Pool re-cycledAppreciate your helpThank youHusain
  • Anonymous
    June 20, 2013
    Hi Husain,if the application pool gets stopped because of Rapid Fail Protection, there is no way to force it to start again due to the nature of Rapid Fail Protection.However, if the applicaiton pool's autoStart is set true then it should be started automatically after a recycling event. If it cannot start then it means that there is a problem. Did you check if there is any entry in the event logs regarding any failure of startup?Thanks,AMB
  • Anonymous
    April 14, 2014
    very informative. Thanks.Have a look at this link also www.etechpulse.com/.../aspnet-worker-process-iis-process-model.html