PC Review


Reply
Thread Tools Rate Thread

ASP.NET 2.0 AppDomain recycling

 
 
John Rivers
Guest
Posts: n/a
 
      13th Oct 2009
Hi

Since upgrading one web app to 2.0 the AppDomain recycles whenever
there is a change in the bin folder

This results in a new AppDomain being created and a full recompilation
of the web app

This takes around 20 seconds and uses about 75% cpu in the process

On the production server this is not a problem as changes to the bin
folder are rare

But whilst I am developing - being forced to wait 20 seconds again and
again and again

is extremely frustrating and interfering with my productivity

ASP.NET 1.1 had a really useful (for me) bug/feature where you could
load the same DLL again and again

as there is no way to unload a managed DLL this is technically a
memory leak - but only whilst developing
thus once a day a simple IISRESET would solve the problem

ASP.NET 2.0 has been redesigned partly to avoid this memory leak
problem

And that is my problem - I *want* the memory leak as it means I can
work quickly

Does anybody know, or can anybody think of a way to stop this unwanted
AppDomain recycling?

 
Reply With Quote
 
 
 
 
3P
Guest
Posts: n/a
 
      1st Jun 2010
Dnia 13-10-2009 o 15:57:28 John Rivers <(E-Mail Removed)> napisa³(a):

> Hi
>
> Since upgrading one web app to 2.0 the AppDomain recycles whenever
> there is a change in the bin folder
>
> This results in a new AppDomain being created and a full recompilation
> of the web app
>
> This takes around 20 seconds and uses about 75% cpu in the process
>
> On the production server this is not a problem as changes to the bin
> folder are rare
>
> But whilst I am developing - being forced to wait 20 seconds again and
> again and again
>
> is extremely frustrating and interfering with my productivity
>
> ASP.NET 1.1 had a really useful (for me) bug/feature where you could
> load the same DLL again and again
>
> as there is no way to unload a managed DLL this is technically a
> memory leak - but only whilst developing
> thus once a day a simple IISRESET would solve the problem
>
> ASP.NET 2.0 has been redesigned partly to avoid this memory leak
> problem
>
> And that is my problem - I *want* the memory leak as it means I can
> work quickly
>
> Does anybody know, or can anybody think of a way to stop this unwanted
> AppDomain recycling?
>



You should look at <compile optimizeCompilations="true" batch="false">

I'm not sure about batch attribute now. First one needs a special download
from MS. It isn't in ASP.NET by default. At least it wasn't in 2.0.
 
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
HELP: how to find list of AppDomain under main process appdomain Hank Microsoft Dot NET Framework 1 17th Sep 2005 04:55 AM
AppDomain / Object Lifetime & AppDomain.Unload =?Utf-8?B?QXJ0aHVyIE0u?= Microsoft Dot NET Framework 1 12th Jul 2005 08:09 PM
Empty Recycling Bin Button in Recycling Bin Directory Arno D. S. Microsoft Windows 2000 0 18th Aug 2004 11:26 AM
Repost: Isolation In AppDomain - How to prevent the main AppDomain to crash when another AppDomain Crashes?????? José Joye Microsoft C# .NET 7 6th Nov 2003 02:10 PM
Repost: Isolation In AppDomain - How to prevent the main AppDomain to crash when another AppDomain Crashes?????? José Joye Microsoft Dot NET 7 6th Nov 2003 02:10 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:21 AM.