Disabling pool recycling on Azure sites

I have a website hosted on Azure sites and I want to disable pool reuse.

If you have a normal IIS installation, you can disable this in the advanced settings of the application pool by setting the Utilization β†’ Disable Overlapping Recycling option to true.

However, I cannot find this option in the azure management console, and I cannot find any information on this subject on the Internet.

Any pointers would be greatly appreciated!

+5
source share
2 answers

Many thanks to Punet Gupta for pointing me in the right direction! I could not use the exact solution, but he set me on the right track.

Here is how I solved it:

1) Grab the application applicationHost.config. The easiest way is through the SCM console through the β€œfiles” and then follow the links in json. As a result, you get here: https://YOUR_WEBSITE_NAME.scm.azurewebsites.net/api/vfs/LocalSiteRoot/Config/applicationhost.config

2) Determine the current overlap status. In the applicationHost.config file, find the "applicationPools" element. It should look like this:

<applicationPools> <add name="YOUR_SITE_NAME" managedRuntimeVersion="v4.0"> <processModel identityType="ApplicationPoolIdentity" /> </add> <add name="~1YOUR_SITE_NAME" managedRuntimeVersion="v4.0" managedPipelineMode="Integrated"> <processModel identityType="ApplicationPoolIdentity" /> </add> </applicationPools> 

If you see this, then interwoven recycling is ENABLED ! You cannot write directly to this file, but, fortunately, Microsoft provides us with the ability to transform it!

3) Transform it! You can convert the applicationHost.config file by placing the applicationHost.xdt file in the directory / site of your site (remember that the site itself is deployed in the / site / wwwroot directory, so the applicationHost.xdt conversion must be in the parent folder where your site is located. If If you want to disable overlapping processing, then this is what you put in the file:

 <?xml version="1.0"?> <configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">> <system.applicationHost> <applicationPools> <add name="YOUR_SITE_NAME" xdt:Locator="Match(name)"> <recycling disallowOverlappingRotation="true" xdt:Transform="Insert" /> </add> <add name="~1YOUR_SITE_NAMEd" xdt:Locator="Match(name)"> <recycling disallowOverlappingRotation="true" xdt:Transform="Insert" /> </add> </applicationPools> </system.applicationHost> </configuration> 

4) restart the site finally, you need to restart your site in order to apply your conversions. After the restart, go to step 1, and now you should see this:

 <applicationPools> <add name="YOUR_SITE_NAME" managedRuntimeVersion="v4.0"> <processModel identityType="ApplicationPoolIdentity" /> <recycling disallowOverlappingRotation="true" /> </add> <add name="~1YOUR_SITE_NAME" managedRuntimeVersion="v4.0" managedPipelineMode="Integrated"> <processModel identityType="ApplicationPoolIdentity" /> <recycling disallowOverlappingRotation="true" /> </add> </applicationPools> 

et voila: Your azure website has disabled interwoven processing.

+7
source

Source: https://habr.com/ru/post/1208801/


All Articles