IIS 7 and Above
IIS7's low performance on rarely accessed ASP.NET 3.5 files
Last post Jul 04, 2008 10:23 AM by duynghia
Mar 15, 2008 11:55 AM|duynghia|LINK
I am using IIS7 on Windows Server 2008 / Vista Ultimate SP1 / 1GB RAM,
I create an ASP.NET 3.5 file named Default.aspx with Visual Studio 2008,
I have a problem, my site is rarely accessed, everytime I try to access it, it take lots of time for my browser to load it, however, if I access it again later in a short time, it load much faster than 1st access. If I access it tomorrow, it takes quite
How can I configure IIS7 to store that page on memory so that it could be accessed fastest even if it's rarely accessed by visitors?
Mar 15, 2008 09:27 PMemail@example.com|LINK
This has nothing to with IIS. ASP.NET is compiled on first access, cached for 20 minutes and discarded if not accessed again. Precompile the pages/app or access them more frequently. Design your app so pages are accessed frequently, even if the displayed
data isn't. You can find out how to do this at www.asp.net, same login as here.
Mar 15, 2008 11:46 PM|pbz|LINK
I don't know specifically for 2008, but with IIS6 you would have to tweak the application pool for the website. By default with IIS6 the worker processes would shut down after 20 minutes of inactivity or after 1740 minutes no matter what. If you want to
keep it fresh you could disable the idle timeout and disable the recycle time or increase it to more than 29h.
Mar 16, 2008 12:51 AM|steve schofield|LINK
If you want to keep it fresh you could disable the idle timeout and disable the recycle time or increase it to more than 29h.
I second this suggestion.
Windows Server MVP - IIS
Log archival solution
Install, Configure, Forget
Mar 16, 2008 01:52 AM|duynghia|LINK
Ok, how can I increase 20-minute limit, or disable the idle timeout or disable recycle time?
Please tell me more details about it
Mar 16, 2008 05:10 AM|steve schofield|LINK
Here is how to set the idle timeout. The default is 20 minutes. As far as disabling, I'm 99% sure setting to zero is the same as IIS 6 unchecking the option.
Here is how to disable recycle options
IIS Manager > Expand the tree control > application pools > right click on your application pool, select properties > Select Recycling. Turn off Regular time intervals. The default is 1740 minutes (29 hours).
Jul 02, 2008 04:14 PM|bills|LINK
Actualy, what you want to disable is ApplicationPool idle timeout - by default set to 20 minutes. You can do this by going to 'advanced settings' for an AppPool, and setting it to 0.
Jul 04, 2008 10:23 AM|duynghia|LINK
GREAT!!! Thank YOU so much!!!