Slow start on first page

Discussion in 'Hosting Services / Control Panel' started by dougc, Apr 28, 2008.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. My client is experiencing very slow startup on going to their website hosted on DiscountASP. I realize ASP.NET is recompiling.

    According to other forum posts: "Note that the application is unloaded if your website do not have any HTTP request after 20 minutes." I assume this unloading means it has to then be recompiled the next time.

    Is there a way to change this timeout to something larger?There areonlya couple of users on this application, and they almost always have to wait for this recompile before they can login. It is giving the application & host a bad rap.

    Thanks for your help.
    -Doug
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    sorry. this setting cannot be changed because it greatly affect server density.


    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  3. Thanks for responding, Bruce. But my client is not happy with the 20-30 second wait time.

    Does anybody have any references to anything else we can do to speed up the recompile after the website is unloaded? Like the architecture of the app, other things?

    'preciate it,
    Doug
     
  4. I know everyone doesn't like the on-line compile method for ASP.NET but I do.
    What I've done in the past it make sure I hit any pages first, where this will be an issue.
    Don't you have that option?
    Salute,
    Mark
     
  5. Mark, Could you elaborate a bit on 'hit any pages first'? That's what the users are doing, their first first page is the login page. Going into a page in a subfolder has a small delay the first time, but it's the first time into the webite after the 20 minutes with no users where they see the 20-30 second delay before the login screen is displayed.

    I like the on-line compile method for ASP.NET, but I assumed once compiled always compiled. And it was stored on disk not in memory and certainly not flushed after a while.
    Thanks,
    Doug
     
  6. Hi,
    What I was referring to is the simple method of just running that page once in a browser on the server.
    Something you may not be aware of however is it isa good idea to run the compilation mode.
    You can do this for individual pages or in your web.config .
    <pages compilationMode="Auto" />

    For some pages you can even use Never.
    Take a look:
    http://msdn.microsoft.com/en-us/library/system.web.ui.compilationmode(VS.80).aspx

    But please be careful with Never:
    http://blog.madskristensen.dk/post/Boost-performance-using-the-CompilationMode-attribute.aspx
    Salute,
    Mark
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page