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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...4.3.0 Frequent Application Restarts By Itself4.3.0 Frequent Application Restarts By Itself
Previous
 
Next
New Post
6/17/2006 1:07 AM
 
This problem still remains in all versions of 4.x from only a single user browsing the site on Win2k, Sql2000 (Does not happen in 3.x):

  6/16/2006 8:59:14 PM   Application Started        ...
  6/16/2006 8:58:43 PM   Application Shutting Down        ...
  6/16/2006 8:56:24 PM   Application Started        ...
  6/16/2006 8:55:52 PM   Application Shutting Down        ...
  6/16/2006 8:54:49 PM   Application Started        ...
  6/16/2006 8:54:08 PM   Application Shutting Down        ...

 
New Post
6/21/2006 8:57 AM
 
Has this been documented in the issue tracker?

Michael Flanakin | Microsoft Consulting Services
www.michaelflanakin.com
 
New Post
6/27/2006 12:46 AM
 
I think I may have narrow down the cause of these application restarts.  Using the technique published here: http://weblogs.asp.net/scottgu/archive/2005/12/14/433194.aspx

I have captured the reason for the shutdowns:

shutDownMessage=Overwhelming Change Notification in C:\WINNT\Microsoft.NET\Framework\v2.0.50727\Config
CONFIG change
CONFIG change
HostingEnvironment caused shutdown

shutDownStack=   at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
   at System.Environment.get_StackTrace()
   at System.Web.HttpRuntime.ShutdownAppDomain()
   at System.Web.Configuration.HttpConfigurationSystem.OnConfigurationChanged(Object sender, InternalConfigEventArgs e)
   at System.Configuration.Internal.InternalConfigRoot.OnConfigChanged(InternalConfigEventArgs e)
   at System.Configuration.BaseConfigurationRecord.OnStreamChanged(String streamname)
   at System.Web.Configuration.WebConfigurationHostFileChange.OnFileChanged(Object sender, FileChangeEvent e)
   at System.Web.DirectoryMonitor.FireNotifications()
   at System.Web.Util.WorkItem.CallCallbackWithAssert(WorkItemCallback callback)
   at System.Web.Util.WorkItem.OnQueueUserWorkItemCompletion(Object state)
   at System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state).

Maybe someone in the coreteam can make sense of this info..
 
New Post
6/27/2006 1:23 AM
 
Getting closer to the anwer: http://forums.asp.net/thread/1222731.aspx
 
New Post
6/28/2006 12:38 AM
 
So the theory as explained in that forum thread...

Basically, ASP.Net 2.0 runtime uses a FileSystemWatcher to monitor each subdirectory in a web app's root folder. It not only picks up files that got modified, but also files whose last access time changed. If the changes in the folders reach over a certain threshold, ASP.Net will initiate a new deployment. In ideal world, this will work perfectly.

The problem is the files and directories are constantly accessed by many processes (including IIS itself, NAV and other Windows services). We have noticed that a file can be accessed many times in seconds. And the Win32 FileSystemWatcher base has a pitiful small event buffer. At the time that the files' last access times got bombarded, FileSystemWatchers pick up too many change events almost at the same time. It's buffer simply overflowed. And exception is thrown from ASP.Net runtime (not from an individual web app). And IIS/ASP.Net catches the exception and has to reload the web app.

Note that the web app shutdown is not caused by the changes in the file system, it is because of the FileSystemWatcher's buffer overflow...

...sadly, what this means is that if the AppDomain is restarted, then there is a performance hit while the AppDomain is started up and pages are recompiled on their first hit. Furthermore, session state that is running In-Process is lost.

So is this fact or fiction?

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...4.3.0 Frequent Application Restarts By Itself4.3.0 Frequent Application Restarts By Itself


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