How to get site to load faster

Discussion in 'ASP.NET 2.0' started by patrick2, Oct 8, 2006.

  1. One of the downsides of ASP.NET for me is the wait for the initial page load time. Whenever you go to most asp.net based web sites the initial page can take from 5-15 seconds to load. After that the site moves around pretty fast.

    Is there anyway to decrease that time or eliminate it altogether? Are precompiled sites faster (by my testing not too much)? I've been told that this is due to the application domain having to start up each time.

    Help. Thanks.
     
  2. You'll see this after your application has been unloaded. You should only see this if your site has low traffic. Once your site gains more traffic, the site will remain loaded in memory.


    Joel Thoms
    DiscountASP.NET
    http://www.DiscountASP.NET
     
  3. Thanks Joel. This might put people in an interesting catch-22 if visitors leave an ASP.NET site because it is slow to load up.

    ---
    Patrick
    http://www.dealwithme.com
     
  4. I've been assuming that if one uses "Scheduled Task" (say every 15 minutes) for an ASP.NET app, it provides a Keep Alive function that prevents Application Unloading.

    Is this a fair assumption?

    Under what circumstances would the Application Unload?

    TIA
     
  5. Bruce

    Bruce DiscountASP.NET Staff

    Other reason why the site will get recycled is

    1) High memory usage: if your site process reaches 100MB, it will be recycled.
    2) High CPU usage

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     

Share This Page