PC Review


Reply
Thread Tools Rate Thread

numRecompilesBeforeAppRestart implications

 
 
=?Utf-8?B?TWFuc28=?=
Guest
Posts: n/a
 
      9th Aug 2004
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
 
Reply With Quote
 
 
 
 
bruce barker
Guest
Posts: n/a
 
      10th Aug 2004
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)



"Manso" <(E-Mail Removed)> wrote in message
news:E4FA0DBF-6367-42E0-9B5C-(E-Mail Removed)...
> 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



 
Reply With Quote
 
 
 
 
=?Utf-8?B?TWFuc28=?=
Guest
Posts: n/a
 
      10th Aug 2004
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

"bruce barker" wrote:

> 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)
>
>
>
> "Manso" <(E-Mail Removed)> wrote in message
> news:E4FA0DBF-6367-42E0-9B5C-(E-Mail Removed)...
> > 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

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Security Implications of WMP10 "Display Media Info from Internet.. =?Utf-8?B?SGVscGluZ291dA==?= Windows XP Security 1 11th Mar 2005 03:38 AM
SP2 Removal implications vameo Windows XP General 5 28th Nov 2004 06:12 PM
Windows XP SP2 Firewall - Developer Implications IPv4 inbound connections for services Scott Herriman Windows XP Security 4 26th Jul 2004 04:33 PM
Windows XP SP2 Firewall - Developer Implications IPv4 inbound connections for services Scott Herriman Windows XP Beta 4 26th Jul 2004 04:33 PM
Windows XP SP2 Firewall - Developer Implications IPv4 inbound connections for services Scott Herriman Windows XP Beta Help and Support 4 26th Jul 2004 04:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:13 AM.