Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does IIS7 take a long time

It looks likes if I don't visit my low traffic site for a day, it takes a long time for the first page to load. I believe it's probably because IIS7 shuts down the application when it receives no requests for a certain length of time.

How can I stop this from happening?

I have a dedicated server so I have all the access required to change things in IIS

like image 600
Roman Avatar asked Oct 07 '10 15:10

Roman


1 Answers

There are two ways that you can handle this.

  1. Modify the "Idle Timeout" value within the application pool. By default it will shutdown the application if there are no requests for 20 minutes

  2. If you are using ASP.NET 4.0 you can use the new Auto-Start behavior to keep the app "Always Running" you can see this blog post for examples on how to configure it.

like image 141
Mitchel Sellers Avatar answered Oct 13 '22 21:10

Mitchel Sellers