IT:AD:Infrastructure:IIS:HowTo/Keep an App always in memory
Summary
Age old problem – keeping an application going (affects such stuff as when using IT:AD:Quartz.NET
Process
A possible reason it's not more widely known is that the setting is not an Advanced Property of the Website itself, but of the AppPool.
- Ensure your web app has its its own identity and apppool
- Select the apppool,
- Select Advanced Settings
- CHange:
- General/StartMode: AlwaysRunning (from the default OnDeman)
- Process Model/Idle timeout: 0 (default 20)
- Recylcling/Regular time interval: 0 (default 1740)
Alternatively do it from the right options: * unchecking the 'Recycle worker processes' under the 'Recycling' tab of the application pool's properties? * And under the 'Performance' tab, uncheck 'Shutdown worker processes after being idle in (time in minutes)'