Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP.NET 3.5 AppDomain Lifetime Options

Reply
Thread Tools

ASP.NET 3.5 AppDomain Lifetime Options

 
 
Prasanna P
Guest
Posts: n/a
 
      02-26-2009
Hi,

I am using ASP.NET 3.5. In my Application_Start event handler, I am
running an expensive database query to cache data once per lifetime of
the app domain. I notice that the app domain seems to recycle itself
without any configuration changes every 1/2 hour or so. ie. When a new
request comes in, after 1/2 hour, Application_Start is called again
and the expensive reinitialization of data is done all over again,
slowing down the request.


I understand this sort f auto-recycling of app domains is new to .NET
3.5. Can someone tell me how I can go back to the default behavior of
ASP.NET app domians which is recycle the app domain only when the
config file or the assembly itself changes? Is there a setting in the
machine.config file? Also, if you can point me to MSDN documentation
on this new bahavior, that would be much appreciated.


Thanks.


 
Reply With Quote
 
 
 
 
Norman Yuan
Guest
Posts: n/a
 
      02-26-2009
That is IIS setting. In IIS6/7, all the applications with the IIS using an
application pool, which can be configured to recycle, shut down working
process in certain time interval. For more detail, go to IIS manager, look
into application pools.

"Prasanna P" <> wrote in message
news:...
> Hi,
>
> I am using ASP.NET 3.5. In my Application_Start event handler, I am
> running an expensive database query to cache data once per lifetime of
> the app domain. I notice that the app domain seems to recycle itself
> without any configuration changes every 1/2 hour or so. ie. When a new
> request comes in, after 1/2 hour, Application_Start is called again
> and the expensive reinitialization of data is done all over again,
> slowing down the request.
>
>
> I understand this sort f auto-recycling of app domains is new to .NET
> 3.5. Can someone tell me how I can go back to the default behavior of
> ASP.NET app domians which is recycle the app domain only when the
> config file or the assembly itself changes? Is there a setting in the
> machine.config file? Also, if you can point me to MSDN documentation
> on this new bahavior, that would be much appreciated.
>
>
> Thanks.
>
>


 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Accessing appDomain members from another appDomain mrajanikrishna@gmail.com ASP .Net 1 09-13-2008 09:15 PM
Performance issue in multi-level Oracle Object/thin JDBC Options Options jacksu Java 0 10-09-2007 08:21 PM
good compile options for g++ options to enforce good coding Cliff Martin C++ 1 01-31-2007 02:03 AM
Calling from default AppDomain (native code) into another AppDomain (managed code), hosted by ASP.NET Dave Burns ASP .Net 0 01-12-2007 03:43 PM
Calling from default AppDomain (native code) into another AppDomain (managed code), hosted by ASP.NET Dave Burns ASP .Net 2 01-12-2007 03:41 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57