Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...An attempt to understand Application Pools and DNNAn attempt to understand Application Pools and DNN
Previous
 
Next
New Post
10/28/2009 5:50 PM
 

I Have three instances of DotNetNuke running on the same server.   I've configured each site to use the same application pool named "dotnetnuke".  So when I look at the app pool called DotNetnuke I have three application names(one for each instance of dnn).   When I look at task manager I see just one worker process running as expected.

So the question is, if instance 1 and 2 get an average of 1 visit a day, and instance 3 gets say 1 visitor every 2 minutes, since they are all in the same application pool does this mean that site 1 and 2 will basically be kept alive by the fact that instance 3 gets hit enough to keep from recycling?

 

Thanks

Josh

 


Josh Martin

 
New Post
10/28/2009 6:39 PM
 

AFAIK that's not the case - each seperate web application has an application domain , which ensures that the code is sandboxed from other code that may be running in the same process (in this case the application pool). Application domains pick up their default settings from the application pool, but can be independantly unloaded - and also can independantly unload due to inactivity, so you will need a keepalive for each site (though as you can extend the timeout at the application pool level you can make the need for keepalives virtually unncessary).

BTW there are many advantages to running multiple websites within 1 application pool - not least of which all of them can share in the same instance of .net. As the default .net framework is ~30mb, that can be quite a saving (along with the saving of the amount of ram needed to run seperate application pools)

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
10/28/2009 6:44 PM
 

I'd be curious what others have to say because there was a thread recently that had some claims about multiple applications in the same app pool NOT all showing a woken state as expected. I don't recall what the reasoning or premise behind the thinking was, and couldn't find the thread to reference here for you.

Personally, I believe that the answer to your question is yes, but keep in mind that you also have other options. The idle timeout doesn't necessarily have to be checked. And the site(s) can be precompiled as well.

There are of course benefits to splitting your 3 sites to their own respective app pools, but maybe you already know the pros/cons of ebrything I just mentioned.

EDIT- I just saw Cathal's post when submitting this one, and appreciate the fact that he used AFAIK. When I looked into this some time ago with sites on IIS 6, they seemed to exhibit the domain-specific behavior that he describes - all domains in an app pool needed to be pinged for keep alive. But I'm not seeing the same type of behavior in IIS 7.5 - a single keep alive to one domain in the common app pool seems to keep every domain in the pool alive and they snap right into the browser.


Eric Swanzey
www.swanzey.com
 
New Post
10/28/2009 7:09 PM
 

I was intrigued by the seeming difference in behavior with IIS 7.5 on WIndows Server 2008 R2, and just came across the following post regarding a new feature on this platform combination - see what DamirDobric has to say about IIS 7.5 and a new feature for "always running" web applications at http://live.mscommunity.net/blogs/damirdobric/archive/2009/10/11/iis-7-5-and-always-running-web-applications.aspx

And, a good comparison by Scott Fosyth, Application vs AppDomain at http://weblogs.asp.net/owscott/archive/2007/09/02/application-vs-appdomain.aspx


Eric Swanzey
www.swanzey.com
 
New Post
10/29/2009 11:17 AM
 

Thanks Eric, some great links there. I was vaguely aware of the asp.net 4.0 warmup feature as Scott Guthrie blogged it @ http://weblogs.asp.net/scottgu/archive/2009/09/15/auto-start-asp-net-applications-vs-2010-and-net-4-0-series.aspx , but wasn't aware that you could do that in IIS 7.5 without having .net 4.0 installed - good stuff.

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...An attempt to understand Application Pools and DNNAn attempt to understand Application Pools and DNN


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out