Reputation: 5355
Is Recycling an App Pool programatically the same as starting and stopping the app pool in IIS.
Upvotes: 2
Views: 401
Reputation: 96
Additional differences are:
Upvotes: 0
Reputation: 119806
Kind of, the difference being that during a recycle http.sys
keeps the client connection alive whilst the worker process recycles and transparently routes new requests to the new worker process once it's started.
Also IIS (6 and 7) defaults to using "Overlapped Recycling". What this means is that IIS will start a new worker process before it shuts down the old worker process. Once the new process is started all new requests are directed to the new process.
If you stop and start the application pool you will dump all of your client connections and users may receive a Service Unavailable message whilst the new pool is being started.
Upvotes: 3