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...Wierd Memory Issue with Elevated AccountsWierd Memory Issue with Elevated Accounts
Previous
 
Next
New Post
9/11/2008 4:59 AM
 

I have a website with 2 portals setup on it.  The first portal works perfectly, no issues with it.  The second portal has started to have a strange memory issue that I will outline below.  This issue just started last week.  These portals have been running without problem for over 6 months now, until last week.

I can log into portal #2 as a standard user without any problem, however, when I try to log into portal #2 with an administrator or host account the w3wp.exe memory surges to over 1.5gb.  The webpage hangs for a while and then I get an OutOfMemory exception. 

Now I can log into a host or admin account on the other portal without any problem.  If I log into portal #1 with a host account and then try to switch to editing portal #2, the same memory surge occurs and then I get an OutOfMemory exception. 

I am using moderate caching on the server, the cache method is disk, page state persistence is set to page and I do not use compression.  This issue started on DNN 4.8.4 and I just recently upgraded to DNN 4.9 but the issue still persists.  I have tried to clear the Schedule History, SiteLog and EventLog tables in hopes that this would fix the issue, but it has had no affect.  So I am at a bit of a loss now, as to why this is happening.  I do not use any 3rd party modules, just the ones that came with DNN.  I turned on DNN Debugging to find the problem but it has given me no clues.  Below are my system specs.

DNN Web Server:

Dell PowerEdge 850, 3.2Ghz Pentium D with 2gb Ram, Running Windows 2003 Standard with SP2

DNN DB Server:

Dell PowerEdge 850, 3.2Ghz Pentium D with 2gb Ram, Running Windows 2003 Standard with SP2, SQL Server 2000 Enterprise

Error Info #1:

Server Error in '/' Application.

Exception of type 'System.OutOfMemoryException' was thrown.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.

Source Error:

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

  <%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
   <system.web>
       <compilation debug="true"/>
   </system.web>
</configuration>

Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.
The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

  <%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
   <system.web>
       <compilation debug="true"/>
   </system.web>
</configuration>

Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.
The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

  <%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
   <system.web>
       <compilation debug="true"/>
   </system.web>
</configuration>

Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.

Stack Trace:

[OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.]
   System.Collections.Generic.List`1..ctor(Int32 capacity) +57
   System.MemberInfoCache`1.AddMethod(RuntimeTypeHandle declaringType, RuntimeMethodHandle method, CacheType cacheType) +154
   System.RuntimeTypeCache.GetMethod(RuntimeTypeHandle declaringType, RuntimeMethodHandle method) +42
   System.RuntimeType.GetMethodBase(RuntimeTypeHandle reflectedTypeHandle, RuntimeMethodHandle methodHandle) +623
   System.RuntimeType.GetMethodBase(RuntimeMethodHandle methodHandle) +33
   System.Diagnostics.StackFrameHelper.GetMethodBase(Int32 i) +58
   System.Diagnostics.StackTrace.CaptureStackTrace(Int32 iSkip, Boolean fNeedFileInfo, Thread targetThread, Exception e) +143
   System.Diagnostics.StackTrace..ctor(Exception e, Boolean fNeedFileInfo) +36
   System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) +72
   System.Exception.get_StackTrace() +35
   System.Exception.ToString() +88
   DotNetNuke.Framework.PageBase.Page_Error(Object Source, EventArgs e) +58
   System.Web.UI.TemplateControl.OnError(EventArgs e) +2085460
   System.Web.UI.Page.HandleError(Exception e) +71
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +7341
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +213
   System.Web.UI.Page.ProcessRequest() +86
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +18
   System.Web.UI.Page.ProcessRequest(HttpContext context) +49
   ASP.default_aspx.ProcessRequest(HttpContext context) +29
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +358
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64


Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433

Error Info #2:

Server Error in '/' Application.

Exception of type 'System.OutOfMemoryException' was thrown.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.]
   System.Xml.XmlTextReaderImpl.InitTextReaderInput(String baseUriStr, TextReader input) +64
   System.Xml.XmlTextReaderImpl..ctor(String url, TextReader input, XmlNameTable nt) +93
   System.Xml.XmlTextReader..ctor(TextReader input) +69
   DotNetNuke.Common.Utilities.XmlUtils.DeSerializeHashtable(String xmlSource, String rootname) +320
   DotNetNuke.Services.Personalization.PersonalizationController.LoadProfile(Int32 UserId, Int32 PortalId) +111
   DotNetNuke.Services.Personalization.PersonalizationController.LoadProfile(HttpContext objHTTPContext, Int32 UserId, Int32 PortalId) +103
   DotNetNuke.HttpModules.Membership.MembershipModule.OnAuthenticateRequest(Object s, EventArgs e) +3208
   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64


Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433

 

I really do not wish to rebuild this portal because it has quite a bit of information in the forums module on the site that I can not afford to loose.  If you need to see my Web.config file as well, I would be more then happy to post that in a reply.  But for right now, I am at a loss as to why this is occuring.  I have tried everything I could think of to fix the problem but nothing seems to work.  I have also not been able to find any post with a similar issue.

I would appreciate any advice that you guys could give to rectify this issue.

Thanks,

Adam

 
New Post
9/11/2008 4:03 PM
 

I found the source of the problem but I am still unsure why it was an issue.  I ran a SQL Trace on the DB and I noticed it kept trying to get event data between date ranges and then it would reset the connection.  It did this repeatedly until the system ran out of memory.  To fix the issue, I had to manually go into the DB and set the IsDeleted property for the event module that was causing the problem.  Once I set this property, everything started to work as it did before.  Now I am stuck trying to re-enter data back into the new events module.  I have not updated the events module in a couple months and it only had a handful of reoccurring events.

Has anyone had this issue before, where the events module was causing the portal to produce an OutOfMemory exception but only on elevated accounts?

Thanks,

Adam

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Wierd Memory Issue with Elevated AccountsWierd Memory Issue with Elevated Accounts


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