Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / July 2005

Tip: Looking for answers? Try searching our database.

keeping asp.net pages warm

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
laimis - 18 Jul 2005 21:20 GMT
Hello,

has anyone succesfully used an approach that I read somewhere suggesting
that after deploying asp.net application, one can create a windows
service or scheduled task that requests for asp.net page from that
application so that it is compiled at all times? This is to avoid long
waiting time when the user hits the site for the first time.

I am about to write a small util that accomplishes the task. I was just
wondering how effective it can be in the production environment...
Brock Allen - 18 Jul 2005 21:25 GMT
Much of the wait time you experience is not the first-time compilation, but
the AppDomain being loaded. You can keep the AppDomain loaded in the same
manner as you suggest, but the tendancy is to unload the AppDomain if it's
not being used; you may have other apps running on the server that might
like those resources. The behavior of shutting down the Application if it's
not being used is more common in Windows 2003 where (by default) if the app
is idle for 20 minutes it's shutdown. This can be configured in the AppPool
settings in IIS under W2K3.

-Brock
DevelopMentor
http://staff.develop.com/ballen

> Hello,
>
[quoted text clipped - 7 lines]
> just wondering how effective it can be in the production
> environment...
laimis - 18 Jul 2005 22:37 GMT
Interesting ...

I got the idea from reading the following article:
http://www.aspnetresources.com/articles/debug_code_in_production.aspx

which has one of the last sections titled "Keep The Code Warm". I
thought, as the author and the white paper suggests, the utility might
be useful. I guess not. Basically what you are saying there is more to
gain by allowing the resources to be freed, than to make sure that the
application stays alive. I guess it depends if any other sites are
hosted and services running.

Well, in any case, thanks for reminding that the delay is also due to
loading the assemblies into app domain.

> Much of the wait time you experience is not the first-time compilation,
> but the AppDomain being loaded. You can keep the AppDomain loaded in the
[quoted text clipped - 20 lines]
>> just wondering how effective it can be in the production
>> environment...
Brock Allen - 18 Jul 2005 23:33 GMT
> Basically what you are saying there is more to
> gain by allowing the resources to be freed, than to make sure that the
> application stays alive. I guess it depends if any other sites are
> hosted and services running.

Bingo -- as always, it depends :)

-Brock
DevelopMentor
http://staff.develop.com/ballen

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.