asp.netiiswindows-serverapplication-poolrecycle

Disable recycling for configuration and alternative ways to do it for IIS and AppPool


We are having weird configuration change errors that happen and we can't tell why. We have tried just about everything to figure out what is happening. We now want to stop the site from recycling the app domain when this happens.

If we set the setting below as True for the Disable recycling for configuration, what is the best way to recycle the app domain when we push new code or touch the web.config file when this is changed?

Also we have recycling of the app pool done ever night, will this clear stuff out with this setting set to True like before?

enter image description here


Solution

  • We went the route found in this article with warming up an app pool, and not recycling on any config changes. This has been so beneficial to us that we recommend it if you are having issues. We have had 0 downtime in a year when we switch to this setup.

    https://www.leansentry.com/guide/reset-restart-recycle-iis/max-application-pool-warmup