when is server recompilation done?

  • Thread starter Thread starter VB Programmer
  • Start date Start date
V

VB Programmer

For a 2003 ASP.NET site, when is recompilation of the site on the server
done? Only after the site is updated, or every time there has been a lull
in visits and someone visits it for the first time?

Thanks.
 
It happens when there's an update to the application, such as a change in
the web.config or one of the site's dlls. It also recompiles whenever the
application is loaded, which will happen when the app is recycled or the
first visit after the application has been unloaded due to inactivity.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP- FrontPage
 
So, if there are no visits to the site for a few days, the FIRST person that
views the site is going to have to wait longer while it rejits? If so,
where can I change the "inactivity" definition?

Thanks!
 
You can't change this behavior and it's not a good idea to. When an
application is loaded into IIS, it takes memory, cpu, and disk resources. By
unloading the web site after a timeout period IIS and the web server are
able to optimize performance for the web server as a whole, and it also
helps the application as well and ensures that unused application resources
are collected. The application will be unloaded after a specified timeout.
This timeout is normally 20 minutes after the last hit on the web
application. You can stretch this in IIS under the application settings, but
it is not advisable to set it for too long as it will degrade performance
overall.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
 
Thanks Mark.
Mark Fitzpatrick said:
You can't change this behavior and it's not a good idea to. When an
application is loaded into IIS, it takes memory, cpu, and disk resources.
By unloading the web site after a timeout period IIS and the web server
are able to optimize performance for the web server as a whole, and it
also helps the application as well and ensures that unused application
resources are collected. The application will be unloaded after a
specified timeout. This timeout is normally 20 minutes after the last hit
on the web application. You can stretch this in IIS under the application
settings, but it is not advisable to set it for too long as it will
degrade performance overall.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
 
Back
Top