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...System out of MemorySystem out of Memory
Previous
 
Next
New Post
10/26/2009 3:24 PM
 

Hi All,

I have DNN 4.9 with custom modules installed.  This website reads an XML file from the portal home directory (1 file per portal).  Everything was working fine until another portal (totalling 3) was created.  The size of the XML file is about 40MB+ and is read on almost every page on the website, creating a session variable for the user if one does not exist.

The DNN framework started crashing, providing an error of "Exception of type 'System.OutOfMemoryException' was thrown", tracing the error back to the function that would read that XML file.  This crash would stop the website from responding... to get the framework running again I would need to stop the IIS app pool and forcing the DNN to re-compile (sometimes it seems harder to get it running again).

I have been able to avoid this error (I think) by restarting the framework or RDC and ending the "w3wp.exe" from the task manager every two days or so.

Does anyone have a solution/suggestion to my situation? Is there a better way to read the XML files into memory?  Any suggestions are welcome

 

Regards,
-Derek

 
New Post
10/26/2009 7:48 PM
 
Do you really need to read the entire 40mb file?  If you must, then another option would be to convert the XML file into a binary file.  That should reduce the file size by 80% or more.  When a page is called, just load the binary into an object graph of your class collections and then load those collections into a data controls (grids, listbox, etc).  But the best option would be to limit the amount of data that is required at one time and use ajax to partially load the data as needed.
 
Also... the Application Pool in IIS can be set to recycle the site if memory reaches a specific point.  That will at least automate the restarts for you.


Professional DNN Extensions, custom solutions and mobile apps since 2003.
www.OnyakTech.com
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...System out of MemorySystem out of Memory


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