numRecompilesBeforeAppRestart implications

G

Guest

Hi,

I've tried to read and understand the implication of the
numRecompilesBeforeAppRestart attribute in <compile> in web/machine.config
and would appreciate if someone could explain the implication of increasing
this value for 15 to, say 50.

We have an application that potentionally could take a while to start and
also can modify ascx and/or aspx files every now and then (because of a built
in templating tool). Right now the application is reastarted every 15 time
(not exactly in our case...trying to figure out exactly when it happens)
which will kill all session variables (which can't be stored on MSSQL). We
would like to increase this value to be able make it happen less frequent.
When is the counter reset? On application restart? What are the side effects
of increasing it?

Thanks in advance,
Manso
 
B

bruce barker

asp.net works by compiling all the code for site and loading it into the
appdomain (where the session variables are). if you change code, it must be
recompiled and loaded into memory. there is no way to remove code from
memory except for unloading a domain (apprestart in asp.net).

so bumping for 15-50, will only increase your memory footprint. there is
also a setting of how large memory can get before a reset, so you may have
to bump this also.

-- bruce (sqlwork.com)
 
G

Guest

Thanks Bruce.

I forgot to mention, the only files that are changed are:

- ascx with "src=" linked .cs or .vb files (i.e. logic do not reside in main
assembly)
- aspx files with "src=" linked .cs or .vb files

These are not stored below /bin. This also seem to increase the counter.
These files are compiled at runtime anyway and I can't see why they have to
unload the entire appdomain. The appdomain doesn't seem to be restarted when
they are loaded.

Thanks,
- Manso
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top