473,396 Members | 2,004 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

keeping asp.net pages warm

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...
Nov 19 '05 #1
3 945
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,

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...


Nov 19 '05 #2
Interesting ...

I got the idea from reading the following article:
http://www.aspnetresources.com/artic...roduction.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.

Brock Allen wrote:
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,

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...


Nov 19 '05 #3
> 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


Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: MLH | last post by:
Case in point... http://www.woodplanet.com/index.cfm?path=/main/form/comps/ValleyLumberSalesInc_2033511.htm After reaching this URL, IE's Back button would not take me back to Google, where I had...
1
by: Sumit | last post by:
Hi all, I have a windows form in which i have a tabcontrol having 4 tabs. I have made 4 user controls for each of the tabpage. I add the user controls on the tabpage programatically. Now in...
7
by: David Lozzi | last post by:
Howdy, I have a usercontrol in my aspx page and when the page loads, I send it some property values based on the data displayed. I am sending it to a public property like below. However the...
0
by: jaffar | last post by:
hi, I am using Tab control, i added the tab pages , i want to change the tab pages color when ever i select the tab page, i have tabpage1,tabpage2,tabpage3 i mean when ever i select the tab...
2
by: MisterKen | last post by:
If I have the html from webpage loaded into a string. How would I use regex to return sections from within that html string? I want to be able to get the "text" back between two different tags....
0
by: Mike | last post by:
In SQL 2000 I have been using Log Shipping to keep a warm backup copy of all my production databases in a different site. Prior to setting up my Maintenance Plan to implement log shipping, on my...
3
by: geraldshastri | last post by:
Hi, I am designing xhtml templates using table-less design with div's and CSS positioning. But the problem is that certain pages tend to shift to the left despite the fact that the underlying...
10
by: aniltc | last post by:
I have a list of users(signed for a newsletter).I'm retrieving the list from a database when the admin clicks on a button. There are maximum 10 users diplayed per page.For example,if I had 30 users...
0
by: =?Utf-8?B?YmVuamk=?= | last post by:
Hi, As this article (http://msdn2.microsoft.com/en-us/magazine/cc163655.aspx) mentions, there is a cold and warm start time for managed apps. I'm running a few .net 2.0 winforms apps on my...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.