04
Keeping your ASP.NET web application alive
When you are hosting a site that is not visited on a regular basis it might happen that the service / application shuts down until a new request is done. This results in the application restarting and thus a delay for the user accessing your page.
To counter this effect a solution is to set the timeout of the process to infinite or at least at a higher number like several hours in stead of the default 5 minutes.
The setting can be found in the machine.config file located in the asp.net directory under the config directory. e.g. C:\Windows\Microsoft.NET\Framework\v1.1.4322\CONFIG\machine.config
processModel enable="true" timeout="Infinite" idleTimeout="Infinite" shutdownTimeout="4:00:00" requestLimit="Infinite" ….
Most settings will have a default value of infinite, only one that needs changing is the shutdownTimeout, this is normally set at an interval of 5 minutes.
There are some other solutions but I think this is the easiest way. Another solution is to keep the application busy at all times, but this may have other performance penalties
<





