[jdom-interest] java.lang.OutOfMemory with an 10 MB xml file??

Sukhvinder Singh ssingh at lumenare.com
Thu Aug 4 03:18:12 PDT 2005


Yes, increasing the heap size solved my problem.

 

Thanks for the help.

 

  _____  

From: Kevin L. Cobb [mailto:kevin.cobb at emergint.com] 
Sent: Wednesday, August 03, 2005 8:39 PM
To: Sukhvinder Singh; jdom-interest at jdom.org
Subject: RE: [jdom-interest] java.lang.OutOfMemory with an 10 MB xml file??

 

SaxBuilder isn't running out of memory, the JVM is. You need to start your
JVM with more memory. The option to do this is:

 

    java -Xms512M -Xmx512M

 

This starts the JVM with 512 Megs of memory. You must have plenty of RAM on
the machine you are running this on. 

 

 

  _____  

From: jdom-interest-bounces at jdom.org [mailto:jdom-interest-bounces at jdom.org]
On Behalf Of Sukhvinder Singh
Sent: Wednesday, August 03, 2005 9:59 AM
To: jdom-interest at jdom.org
Subject: [jdom-interest] java.lang.OutOfMemory with an 10 MB xml file??

Hi all, 

 

I am using JDOM XPath, but on trying to load a large xml file (10 MB) to use
jdom XPath, I am getting "java.lang.OutOfMemory" error, as my requirement is
to use more then 10MB XML files, any idea how 10 MB XML file using a
SaxBuilder would run out of memory? How does the DTD validation of an XML
parser handle this?
 
I'd appreciate any ideas or knowledge in this area. 
 

Thanks,

Sukhvinder Singh

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.jdom.org/pipermail/jdom-interest/attachments/20050804/752e2e74/attachment.htm


More information about the jdom-interest mailing list