开发者

Recycle AppPool

Is Recycling an App Pool programatically the same as starting and stopping the app poo开发者_JAVA百科l in IIS.


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.


Additional differences are:

  1. You can do recycle to your application pool only, while stop & start influences all application pools.
  2. When you are asking to recycle you have time to finalize your work (like saving your data etc.), which is not in restart.
  3. You can schedule the IIS to run the recycle job depends on specific time, after period of time, depends on your memory consumption etc..
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜