Fully precompiled web application vs. first time access

Discussion in 'ASP.NET 2.0' started by Balazs, Mar 11, 2008.

  1. Hi,

    We have a precompiled site using WEB Deployment project of Visual Studio 2005. Everything is precompiled including the aspx files. (The aspx files contain a placeholder warning text only, the code behind files are precompiled into dlls) But regardless of the entire site is precompiled the users have to wait 20 seconds at their first visit. </o:p>
    </o:p>
    As far as I know the problem is that the idleTime is set to 20 (?) minutes in the IIS?s machine.config file. If it would be set idleTime = ?infinitive? then the ASP?s worker process would never end therefore our user would never wait so long to start the worker process. But it I can?t modify the server?s machine.config and this mod would also affect all the web sites on the server?</o:p>
    </o:p>
    DiscountAPS.Netrecycles an application if the following condition is met</o:p>
    </o:p>
    1) More than 20 minutes of idle time (no http request in 20 minutes)</o:p>
    2) The application uses more than 100 MB memory</o:p>
    3) The application uses more than 75% of CPU time</o:p>
    </o:p>
    Once our application is being recycled (because of the timeout), even if it is precompiled it will still need to reload again on the temporary ASP.Net file directory. The first initial load can take up some time, after which the pages will be much faster. </o:p>
    </o:p>
    One solution would be to create a dummy page within our web application and buy a monitoring service - like http://www.websitepulse.com/ - which would monitor this dummy page in every 10-15 minutes. The dummy page would be a simple and very small empty html page so it won't generate too much traffic on the server. Would it work? Does anybody hasany suggestion about this. (I also tried the help desk, but they suggested to create a post about it on their Forum)
    </o:p>
     
  2. This may be a tough one to get tips on here, I'm pretty much lost to be honest. [​IMG]
    However...The http://iis.net/forums offer a lot of help with things like this.
    You can find some real geniuses there.
    Salute,
    Mark
     
  3. The service looks more like a performance monitoring service (http oriented(1))and I don't think it will be able to help you with the memory(2) and CPU(3) monitoring issues.

    Vikram

    DiscountASP.NET
    www.DiscountASP.NET
     
  4. Hi Vikram! Thanks for your answer. You are absolutely right but we have time out problem. Our processor and memory usage are low. </o:p>

    Louis
     
  5. Thanks Mark, I will check that site!</o:p>
     

Share This Page