Whats the disadvantages and advantages of DISABLE overlapped recycle of IIS
?
By default the option Disable Overlapped Recycling
is false
, I need to change this to true
but I don't know whats the disadvantages of this and I did not find any documentation saying specifically about this disadvantages.
I imagine that when someone is in the middle of a request to the webservice published, and recycle the pool, the call is dropped immediately with an exception. I am sure?
The disadvantages of setting that to true is that your site will be down while recycling the app pool.
The advantage is the opposite :)
The only documented situation where that needs to be set to true is explained here
When applications are recycled, it is possible for session state to be lost. During an overlapped recycle, the occurrence of multi-instancing is also a possibility.
Loss of session state: Many IIS applications depend on the ability to store state. IIS 6.0 can cause state to be lost if it automatically shuts down a worker process that has timed out due to idle processing, or if it restarts a worker process during recycling.
Occurrence of multi-instancing: In multi-instancing, two or more instances of a process run simultaneously. Depending on how the application pool is configured, it is possible for multiple instances of a worker process to run, each possibly loading and running the same application code. The occurrence of an overlapped recycle is an example of multi-instancing, as is a Web garden in which two or more processes serve the application pool regardless of the recycling settings.
If your application cannot run in a multi-instance environment, you must configure only one worker process for an application pool (which is the default value), and disable the overlapped recycling feature if application pool recycling is being used.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With