You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Alex Reuter <ar...@monsterdaata.com> on 2001/03/12 17:56:08 UTC

out of memory exception

Hello List,

i'm trying to transform, via command the command line, a relatively big xml
file(200 mb+) and i'm getting the following error:
========= Parsing Huge_XML.xml ==========
java.lang.OutOfMemoryError
        at org.apache.xerces.utils.StringPool.ensureCapacity(Compiled Code)
        at org.apache.xerces.utils.StringPool.addString(Compiled Code)
        at org.apache.xerces.utils.UTF8DataChunk.addString(Compiled Code)
        at org.apache.xerces.readers.UTF8Reader.scanAttValue(Compiled Code)
        at
org.apache.xerces.framework.XMLDocumentScanner.scanAttValue(Compiled
Code)
        at org.apache.xerces.framework.XMLParser.scanAttValue(Compiled Code)
        at
org.apache.xerces.framework.XMLDocumentScanner.scanElement(Compiled C
ode)
        at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.disp
atch(Compiled Code)
        at org.apache.xerces.framework.XMLDocumentScanner.parseSome(Compiled
Cod
e)
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1208)
        at org.apache.xalan.xpath.dtm.DTMLiaison.parse(DTMLiaison.java:229)
        at
org.apache.xalan.xslt.XSLTEngineImpl.getSourceTreeFromInput(XSLTEngin
eImpl.java:838)
        at org.apache.xalan.xslt.Process.main(Compiled Code)

=====================================================
Is there a limit on the size of the xml to be parsed?  Would another
processor be able to handle this?

The xsl used to parse it has worked very well in the past, and smaller xml's
of the same format worked just fine.

Thanks for any suggestions/pointers/hilarious jokes at my expense.

Alex