The tip aim is to make it in order that every time my app pool is recycled (which ought to occur every time I launch an replace for the positioning), my website will get visited as soon as to “heat up”. Usually the primary go to after a recycle takes 2.5 seconds after which subsequent visits solely take 0.5 seconds so it must be visited as soon as after each replace. I would prefer to automate that and it appears the Home windows Utility Initialization characteristic is the way in which to try this.
The issue is that, with this characteristic enabled, upon restarting the app pool (or restarting something) I am not seeing any entry logs of a go to to my website. It looks like the Utility Initialization characteristic is not functioning in any respect. I do not see any errors within the system occasion log or any option to troubleshoot additional.
Here is the atmosphere:
- Home windows Server 2019
- IIS 10 (with all wanted roles/options)
- ASP.NET Core 3.1
Here is what I’ve configured (utilizing the IIS 8.Zero Utility Initialization information):
- The “Utility Initialization” characteristic/function has been put in in Home windows
- App Pool:
- .NET CLR model: No Managed Code (I’ve additionally tried v4.0)
- Managed pipeline mode: Built-in
- Begin utility pool instantly: Enabled
- Begin Mode: AlwaysRunning
- Idle Time-out (minutes): 0
- Common Time Interval (minutes): 0
- Web site:
- HTTPS solely (I’ve additionally tried including HTTP)
- Preload Enabled: True
- applicationHost.conf file
system.webServer/applicationInitialization
part:
Troubleshooting:
- I’ve restarted the positioning/app pool/providers/server
- I’ve tried varied settings within the
system.webServer/applicationInitialization
part and in addition transferring it to net.config - I observed that the
globalModules
part of the applicationHost.config file had this in it however I’ve browsed to that folder and it is empty. I’d have anticipated some dll recordsdata in there together with warmup.dll:
<add title="ApplicationInitializationModule" picture="%windirpercentSystem32inetsrvwarmup.dll" />