Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
|
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 22nd, 2007, 09:55 AM
Registered User
 
Join Date: Nov 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rd_innovatives
Default Max Size XML Parsing by C# 2005

Hi Friends,

Do anyone know the maximum size of xml which can be parsed without any error by C# 2005? by XMLDOCUMENT Class ?


 
Old November 22nd, 2007, 11:48 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Depends on available system memory. Assume four times document size for XmlDocument size.

--

Joe (Microsoft MVP - XML)
 
Old November 22nd, 2007, 12:15 PM
Registered User
 
Join Date: Nov 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rd_innovatives
Default

ok fine .. this sounds good .. but the bad thing is :
in our production server we have 4 GB of RAM!! while parsing XML of 300 MB it is throwing 'System Out of Memory Exception'

so .. 300*4 = 1.2 GB and the RAM there is 4 GB!!

Please assist :)

 
Old November 22nd, 2007, 12:25 PM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Well you'll have to check the task manager, there are undoubtedly other processes running on the server. Unless the server is running a 64 bit system then you'll only get a maximum of 2GB anyway unless you have enabled more:
http://support.microsoft.com/default.aspx/kb/823440 (although it's about Exchange it applies in general)

Alternatively look at processing using XmlReader if possible.

--

Joe (Microsoft MVP - XML)
 
Old November 22nd, 2007, 12:40 PM
Registered User
 
Join Date: Nov 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to rd_innovatives
Default

how can I find out the 32 bit system or 64 bit system ? I can access our Prod. server in TAMPA through Remote Desctop ..

and the 2nd thing is : except the normal windows processed we just executed that process only where the large xml is being parsed there .. so we can wash out the probability of any other process to run ..






Similar Threads
Thread Thread Starter Forum Replies Last Post
Max Size of Forms & Modules in VB6 Zooker Pro VB 6 4 September 4th, 2008 06:14 PM
varchar(max) in sql server 2005 vinchellam SQL Server 2005 4 May 31st, 2007 10:32 AM
XML Parsing SCADA_Monkey XML 2 March 11th, 2007 03:20 PM
Browser Max size AristotleYu ASP.NET 2.0 Basics 2 October 31st, 2006 01:03 PM
max size for xml file dg1234 XML 1 October 22nd, 2003 03:14 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.