You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by "Singh, Anoop" <an...@hp.com> on 2003/01/21 04:29:40 UTC

Maximum size of XML possible in DOM?

Hi All,
	Could anyone please share the info on the Maximum possible size of a XML Document which can be parsed by the 	Xerces DOM parser.

	Any info will be highly appreciated.
		
Thanks and Regards,
Anoop Singh


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org


RE: Maximum size of XML possible in DOM?

Posted by "Dr. Robert Spiske" <sp...@chemie.uni-halle.de>.
Hi!

>   Was able to read an 8 meg file but when I
>went to traverse it I ran out of memory. It turned out that 4meg was the
>limit for me.  It probably will depend on your system memory as well.
>
>Doug

The JVM usualy starts using 64 MB of RAM. If you need more e.g. 512 MB run:
java -Xmx512m
Starting the JVM with more memory should help (if you have enough physical 
memory).

>         Could anyone please share the info on the Maximum possible size of a
>XML Document which can be parsed by the         Xerces DOM parser.

The memory usage depends on the number of tags and the amount of text in it.
That is why there is no general answer.

Hope this helps
Robert




---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org


RE: Maximum size of XML possible in DOM?

Posted by Doug Helton <dh...@ideorlando.org>.
This depends on what version of xerces you are using. I am using xerces
2.2.1.  Surprisingly it also depends if you have validation turned on or off
as well.  The surprising part is that you can parse a larger file with
validation turned on.  This is because with validation it is better able
tell the difference between valid whtiespace and what is not valid, so it
does not build as many nodes.  Have benchmarked using jprobe was able to
read and traverse a 4 meg file.  Was able to read an 8 meg file but when I
went to traverse it I ran out of memory. It turned out that 4meg was the
limit for me.  It probably will depend on your system memory as well.

Doug

-----Original Message-----
From: Singh, Anoop [mailto:anoop.singh@hp.com]
Sent: Monday, January 20, 2003 10:30 PM
To: xerces-j-user@xml.apache.org
Subject: Maximum size of XML possible in DOM?


Hi All,
	Could anyone please share the info on the Maximum possible size of a
XML Document which can be parsed by the 	Xerces DOM parser.

	Any info will be highly appreciated.
		
Thanks and Regards,
Anoop Singh


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org