Reputation: 3536
I have a Windows Azure Web App.
I need to adjust the Application pool recycle so that it occurs every day at 03:00 uk time rather than the default 29 hours.
How can I achieve this?
Upvotes: 0
Views: 3350
Reputation: 3335
1) create file named: applicationHost.xdt
2) insert override for the pool recycling time i.e.:
<?xml version="1.0"?>
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<system.applicationHost>
<applicationPools>
<add name="yourappname" xdt:Locator="Match(name)">
<recycling xdt:Transform="Insert" >
<periodicRestart>
<schedule>
<clear />
<add value="03:00:00" /> // + adjust for server time/ UTC
</schedule>
</periodicRestart>
</recycling>
</add>
</applicationPools>
</system.applicationHost>
</configuration>
3) upload the file into your app /site root:
4) Hard stop and start your service/app (restart will not take effect!)
5) You may check this resource for more info on .xdt file
Upvotes: 2