Application Periodically Slow On First Load

Discussion in 'Windows / IIS' started by awhisker, Feb 5, 2010.

  1. Hi Everyone,

    I am hosting an application with the UK Datacentre.

    Now, I have noticed that (periodically) the response time is very slow for the first page (maybe 5 seconds) - and then it's super fast once you browse the rest.

    My homepage is purposly very light aspx page with no database calls, no Ajax, small css file, small image, no javascript.

    Once the user logs in from the homepage, the rest of my application runs the Ajax Toolkit.

    Any ideas why this might be?

    Thanks in advance...

    Andrew
     
  2. mjp

    mjp

    If the application is idle for 20 minutes your application pool recycles and everything is dropped from memory. So the next time you call the app it has to spin up and load into memory, which can take a bit of time. Then of course once it's in memory it responds much more quickly.
     
  3. Classic ASP was interpreted. The .NET framework compiles application. The is done JIT(just in time) meaning the first time the application launches it will be compiled. There are many advantages to having a compiled application, one being speed, however the initial compilation process will obviously cause a delay.

    You can upload a pre compiled version of your site to avoid having the site go through the compilation process.
     
  4. Chuck and MJP thanks for your replies...

    Would it be a good idea to make requests from another website I have as a kind of "keep alive" mechanism? This website gets enough hits to ensure that my "new application" would not go idle...

    If so, can I just request an image file or would it have to be an .aspx page?

    Andrew
     
  5. Any request will suffice.
     

Share This Page