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 (3)

  1. Please can you help on

    How to force "Start" (Autostart) for stopped Application Pool after the App Pool re-cycled

    Appreciate your help

    Thank you

    Husain

  2. 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

  3. ayesha says:

    very informative. Thanks.

    Have a look at this link also http://www.etechpulse.com/…/aspnet-worker-process-iis-process-model.html

Skip to main content