473,387 Members | 1,771 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,387 software developers and data experts.

numRecompilesBeforeAppRestart implications

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
Nov 18 '05 #1
2 5919
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" <Ma***@discussions.microsoft.com> wrote in message
news:E4**********************************@microsof t.com...
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

Nov 18 '05 #2
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" <Ma***@discussions.microsoft.com> wrote in message
news:E4**********************************@microsof t.com...
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


Nov 18 '05 #3

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

Similar topics

0
by: jason | last post by:
What is the best way to handle global includes for 3 subwebs that may at various times consume similiar include files such as ENQUIRY FORMS. I ask this question as I now have the oppportunity to...
0
by: Lane Friesen | last post by:
I've developed a new form of client-based, secure 'Web Memory' that uses the JAVA or dotNET VM to launch a 'terminate and stay resident' program fragment that maintains persistence between web...
8
by: leo | last post by:
Hello all - I was wondering about the performance implications of explicitly raising exceptions to get information about the current frame. Something like what the inspect module does, with: ...
2
by: Tom Kerigan | last post by:
I know that longer element names increase the size of an XML document, ultimately resulting in a larger amount of data at parse-time. Is there anything else, specifically related to an element name...
1
by: keiko ishikawa | last post by:
Can anyone advise on security implications of allowing SET CURRENT SQLID='xxx' ? I am running DB2 v7.1 on OS/390. Thanks. K Ishikawa
7
by: Mark Kamoski | last post by:
Hi Everyone-- Please help. What are the implications, (in terms of memory, application footprint, resource use, threading, and so forth), of using Shared methods? These Shared classes raise...
0
by: Mark | last post by:
We're using delegation in our ASP.NET application to connect to a SQL Server that is on the same hub as our IIS 6 web server. What are the performance implications of using Delegation rather than...
2
by: Bill Borg | last post by:
Hello, I have a couple web services that I use across my apps. My isp supports exposing them either via subdomain (e.g. services.mydomain.com) or subfolder (e.g. mydomain.com/services). Are...
2
by: HornbeamUK | last post by:
Within a vb.net application I need to return the default language of an sql user ie login. sp_helplogins returns a recordset that includes the desired field but is very slow to run (4 or 5...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.