I host an asp.net website on an IIS server, and I find that the website will be slow to be displayed when the website has not been accessed for a long time.
Does IIS suspend websites that have not been accessed for a long time?
I host an asp.net website on an IIS server, and I find that the website will be slow to be displayed when the website has not been accessed for a long time.
Does IIS suspend websites that have not been accessed for a long time?
It depends on how the application pool the site is running in is configured, but yes. IIS can shut down an app (ie- recycle the worker process(es)) that has not had any activity for X amount of minutes (X is configurable). It's also possible to recycle based on memory consumption, CPU consumption, after a certain number of requests are served, based on a schedule, or programatically.
By default, IIS 6 and above have an Idle Timeout property configured for Application Pools.
If an Application Pool hasn't been used for 20 minutes (by default), it'll be shut down.
If it's under more load than 1 request every 20 minutes, it'll eventually recycle (by default) after 29 hours.
If you'd like to stop a particular App Pool (in IIS7+, each Website also gets its own App Pool created by default if the site is created through the GUI) shutting down every 20 minutes, get the App Pool properties, and check out either Recycling... in IIS 7, or the Health tab in IIS 6.