Iis – Slow response time when coming back to a page hosted under IIS7

asp.netiisiis-7

I have deployed an ASP.NET MVC site under IIS7 on a local Windows Server 2008. The site works well, although I find the init time a bit long. I'm seated locally on this machine. If I browse the web site a bit and then leave for some time (let's say 30 or 60 minutes), when back and I click on a link, it takes again a long time to render the response. Then the next links are ok.

I don't know a lot about IIS yet, but I checked the recycle time in the IIS config and it's set to 29 hours, so I guess the answer is not there.

Also, my site uses ELMAH and I checked that there was nothing wrong in the log.

Where should I check next ? What can cause that ?

Thanks

Best Answer

It does sound like the worker process is shutting down because it's idle. In the Application Pool you might look at the Advanced Settings / Process Model / Idle Time-Out. By default this is 20 minutes. I.e. it will shut down after 20 mins if it's Idle.

The Recycle time is effectively the maximum time a process is allowed run when it is continually busy before being restarted.