If a web application called for itself to be setup with it's application pool to be configured in the applicationHost.config as:
<add name="AppPool" managedRuntimeVersion="v4.0" startMode="AlwaysRunning" />
Would the same result be achieved by just requesting a page from the server every minute? Or does setting startMode to this value have other implications also?
It appears to be the same. Seemingly, since Microsoft saw developers having to do this, they created this new feature to automatically handle this.
From Scott Guthrie's Auto-Start ASP.NET Applications (VS 2010 and .NET 4.0 Series).
So unless you're not using IIS 7.5, I'd say just use the built-in functionality.
(And thanks; I didn't know about this feature, but can definitely think of sites that I develop for that could use it.)
IIS 7.5 includes an additional flag on a Site or Application level called
preloadEnabled
. Setting this to true will create a fake request to warm up the site. It must be used in conjuncation withautoStart
.autoStart
preloadEnabled