Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What happens on an application pool reset?

Tags:

What happens when an application pool is recycled in IIS 7? Does IIS abruptly stops everything on that website and there is user impact or does it does it transparently and the user never notices anything?

Should we do recycles at all? What are the pros and cons of it?

I was thinking of doing it everyday late at night when traffic is very low. Any best practices, suggestions?

Thank you

like image 463
unlimit Avatar asked Jun 17 '12 19:06

unlimit


People also ask

What happens when you restart an application pool?

As for restarting a website, it just stops and restarts serving requests for that particular website. It will continue to serve other websites on the same app pool with no interruptions.

What happens if IIS reset?

What does IISRESET do? IISRESET restarts all IIS services, shutting down any active IIS worker processes in the process and killing them if they do not stop in time. During the restart, the web server stops listening for incoming requests and causes downtime for all websites on the server.

Which process does application pool refresh?

If the worker process currently serving the application pool terminates, then the WWW Service (W3SVC), acting as the parent process to the worker processes, restarts a new process in its place.


1 Answers

If you actually mean Application Pool Recycle, then it is an online operation. A new w3wp process is created which serves subsequent requests, while the previous w3wp process has a configurable amount of time to complete all outstanding requests (by default 90 second). There is a performance impact since the items in memory have to be reloaded, but there is no outage.

Having a nightly recycle, followed by a warm-up of some sort (to load items into memory) is a fine idea if you have memory leak issues, but the real advantage is the ability to warm-up during low-load (otherwise you're better off to not recycle till it's actually necessary).

If you actually mean Reset (which is normally said as an IIS Reset, or for an Application Pool a stop, then start) then yes, there is an outage. And no, it should not be done if it can be avoided.

like image 189
Stephen S. Avatar answered Sep 30 '22 01:09

Stephen S.