Reputation: 2727
I have an ASP.NET MVC 5 webapplication hosted @ IIS 8.5 / Windows Server 2012 R2.
For the application pool I have the following custom configuration parameters set
preloadEnabled = "true"
startMode = "AlwaysRunning"
idleTimeout = 0
The web application terminates still after ~20 minutes without requests and it takes ~30 seconds for it to be available again.
Is there any another option I forgot to adjust/turn on/off?
Upvotes: 5
Views: 669
Reputation: 4454
I'm running IIS 7.5 on Server 2008R2, but our situation should be similar. I also wanted "always running" and didn't want w3wp.exe to die after idle. My issue was that preload wasn't firing, so your mileage may vary with the below.
Your app pool stuff looks good. I would also add that you should turn off recycling if a live forever application is your goal. Let's confirm that the settings are getting to the right spots!
Upvotes: 1