• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 893
  • Last Modified:

Very Slow Page Loads After Inactivity

I'm running a site on an IIS7 server running the .NET 2.0 Framework.  I am having an interesting problem.  When I load the site in IE7 after some period of inactivity (without any changes to the source code), the pages load extremely slow, almost as if it is recompiling itself.  As soon as a particular page loads once, that page will then load quickly from that point forward.  So in order for the entire site to run quickly, i have to click into each section, wait through the slow loading and then that section will run fine.  I can change search criteria on pages that hit my DB and still everything is as it should be ie. good performance.  However, after some period of inactivity, perhaps greater than an hour, the pages load very slow again for the first time.  

I'm wondering if there is something I need to tweak to prevent this from happening.  I'm also wondering if this is occuring at the application level (only affects the first user hitting the site after inactivity) or on a session by session level (this will happen to each user hitting the site after they have been inactive)

Recently, I made some tweaks to the services running on my machine to try to increase the performance of my machine itself (my computer is also my development environment), however I'm quite sure I didn't disable anything that has to do with this issue.
1 Solution
Ted BouskillSenior Software DeveloperCommented:
This is a caching issue and you are correct.  The first user refreshes the cache then subsequent users benefit from that refresh.

Here is a link on caching: http://aspnet.4guysfromrolla.com/articles/121306-1.aspx

However, I've found that the key for what you are experiencing is in the 'Web Application Pool' settings.  If you look at the properties for the web application pool controlling your website it probably recycles processes after a set period of time.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now