[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 882
  • 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.
0
davidcahan
Asked:
davidcahan
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.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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