Very Slow Page Loads After Inactivity

Posted on 2007-07-29
Last Modified: 2008-01-09
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.
Question by:davidcahan
    1 Comment
    LVL 51

    Accepted Solution

    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:

    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    794 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now