ASP.NET app - Slow initial load IIS6

Discussion in 'ASP General' started by Med, Nov 3, 2008.

  1. Med

    Med Guest


    Initial load of my ASP.NET app takes 50 seconds to load. Then it become
    fairly fast. Followings are my app/hardware configs:

    IIS 6 running on Hosted VPS Windows 2003 Enterprise, with allocated 512MB
    RAM. Lots of memory still available when my app runs. CPU usage is low too.
    Application pool default settings.

    ASP.NET 3.5 using "StateServer" service.

    Initially I thought delay was caused by SQL connection, so I created a blank app, with one page (default.aspx) only. This page does not try to
    connect to SQL on load. It only does this when a button on default.aspx is
    clicked which calculates connection time.

    When I tried to load default.aspx, it still took more than 50 seconds to
    load. Considering there is no code to run when this page loads. SQL
    Connection takes less than 7 millisecond to execute. So SQL connection is
    not source of the problem.

    Does anyone knows possible cause of this delay? I think it is
    related or might have something to do with app pooling or "StateServer"
    service perhaps?

    Thanks for your time.

    Kind Regards

    Med, Nov 3, 2008
    1. Advertisements

  2. Med wrote:
    > Hi,
    > Initial load of my ASP.NET app takes 50 seconds to load. Then it
    > become fairly fast. Followings are my app/hardware configs:

    50 secs sounds a "bit" longer than one would expect for the initial
    compilation of your dll to take. It is to be expected that the first load of
    the app will take longer than subsequent loads because of the compilation
    that takes place the first time the app is called.
    I've not run into this type of delay so all I can do is fall back on my
    canned .Net reply:

    There was no way for you to know it (except maybe by browsing through some
    of the previous questions in this newsgroup before posting yours - always a
    recommended practice) , but this is a classic (COM-based) asp newsgroup.
    ASP.Net bears very little resemblance to classic ASP so, while you may be
    lucky enough to find a dotnet-knowledgeable person here who can answer your
    question, you can eliminate the luck factor by posting your question to a
    group where those dotnet-knowledgeable people hang out. I suggest
    microsoft.public.dotnet.framework.aspnet or the forums at

    Microsoft MVP - ASP/ASP.NET - 2004-2007
    Please reply to the newsgroup. This email account is my spam trap so I
    don't check it very often. If you must reply off-line, then remove the
    "NO SPAM"
    Bob Barrows [MVP], Nov 3, 2008
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ian Murphy

    *very* slow initial page load

    Ian Murphy, Jan 20, 2005, in forum: ASP .Net
    Jun 17, 2008
  2. Replies:
  3. Med

    Initial Load slow on IIS6

    Med, Nov 3, 2008, in forum: ASP .Net
    Nov 3, 2008
  4. Ian Murphy *very* slow initial load.

    Ian Murphy, Jan 19, 2005, in forum: ASP General
    Ian Murphy
    Jan 20, 2005
  5. Akerlund

    Slow ASP Pages on IIS6 / Windows 2003

    Akerlund, Jun 15, 2007, in forum: ASP General
    Jun 21, 2007

Share This Page