IIS Page Load Delay

Posted on 2005-05-06
Last Modified: 2012-06-21
I have an website hosted on an win2k3 IIS 6.0 server.  The site only gets a few hits per day, but these hits are very important b/c of the products we are selling.  The site normally loads extremely fast.  But, when the site has not been hit for a while, say 30 minutes, I get a long initial delay of around 10 seconds before the page starts loading.  It seems like IIS goes to sleep after a certain period of inactivity, or that something is being re-cached server side after a certain timeout.

I'm wondering if there is some 'keep alive' setting or something of that nature to combat my 'inital hit delay' problem.  If I can't solve the problem, my workaround is to create a windows application that's only function is to periodically load my website.  Wouldn't that be a hoot!

Also, I'm testing this on a LAN to rule out any internet influence.

Thanks in advance!
Question by:colemaj1
    LVL 8

    Expert Comment

    Hi colemaj1,
         Are you using Com objects in this?  My guess is yes, and if you are using .Net stuff it may just be related to that in the Component Services Section anyway.

    So you will want to go to your Compent Services and then go to Computers, My Computer, COM+ Applications.   Under here you will have many packages.   In these packages items can be set to do things after a certain length of time.  Under the Properties section of each item you can go to the advanced tab, and under there you can either change the idle time length to something much greater or have it never shutdown.    Since you seem to be experiencing a problem after a certain amount of time, that should be the current time in there.  You can also look at those items to see which ones start running when you hit the site.  Make sure that it has timed out first to do that testing though.

         Another possibility is that it is a Web Site setting, but based on what you said I do not think so, this would only affect a machine usually, not everyone.  So you should make sure that it is not just the initial loading of items on to a machine.   So here is what you change under the Web site itself.  Go to its propertied under IIS, and then select the "Web Site" Tab and you will see a Connection Time Out there.  This number can be increased.   Also under  Home Directory Tab and under the configuration button there.  You will see the Options Tab, under there you will see 2 options that can be changed  'Session timeout' and  'ASP Script Time Out'.    These can also be directly in a web page or website configuration file.

    Steven Stuart
    LVL 34

    Accepted Solution

    Initial page load for an ASP.Net page takes some time to compile the page, load assemblies, etc.

    The fact that this happens after about 30 minutes is what really makes the difference though.....

    In IIS 6.0 Application Pools are set by default to shut down if idle for more than 20 minutes.

    Bring up the properties on the Application Pool for your site, look for the 'Shutdown when Idle' setting (second tab if I remember right) and deselect it.

    You will still see some slowness for the initial page load but now the worker process won't shut down causing the need to reload the page when the worker process restarts.

    Dave Dietz

    Author Comment

    Steven, I tried your suggestions, but it did not solve the problem.  I'm going to try Dave's and see how it goes.

    Author Comment

    Dave, that worked great.  Thanks!

    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

    Join & Write a Comment

    First of all, clustering IIS is something you should rarely consider doing. In almost all cases, Microsoft Network Load Balancing (NLB) ( is a much better solution when you need to p…
    Running classic asp applications under Windows Server 2008 R2 (x64) and IIS 7 is not as easy as one may think. It took me a while to figure it out while getting error 8002801d a few times. After you install the OS you will need to install the fol…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    755 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

    22 Experts available now in Live!

    Get 1:1 Help Now