Did the larger XML document work before? My guess is that you need to
increase the default heap size for java.exe. The default heap size is 16MB
for JKD1.1.8. So, with 90,000 lines of XML you'll suck up a big portion of
that heap.
Try increasing the heap size using the "-mx" parameter, e.g. for a 64MB
heap:
java -mx64000000 org.apache.xalan.xslt.Process -in keeper.xml -xsl
keeperhtml.xsl
-Rob
Andrea
Schneider To: [EMAIL PROTECTED]
<[EMAIL PROTECTED] cc: (bcc: Robert
Weir/CAM/Lotus)
> Subject: [Fwd: Help!]
Sent by:
[EMAIL PROTECTED]
03/21/00
11:34 AM
Please
respond to
xerces-dev
----- Message from Andrea Schneider <[EMAIL PROTECTED]> on Tue, 21 Mar 2000
17:27:40 +0100 -----
To: [EMAIL PROTECTED]
Subject: Help!
Hello,
can anybody help me with the following problem?
I used Xalan_0_20_0 and Xerces_1_0_3 and I want to parse an XML-
Document with 89304 Lines. I used a XSL-Dokument redirect to get
multiple HTML-Dokuments. Shorter Versions of XML-Dokument, but
with the same structure and with the same XSL-Dokument worked
fine since now ( also with older versions of Xalan and Xerces).
But now I had to do Performance-Tests and now the following
Exception occurs (using the command-line interface):
========= Parsing file:/home/as/XML/ds9/xalan/12/keeperhtml.xsl
==========
Parse of file:/home/as/XML/ds9/xalan/12/keeperhtml.xsl took 1257
milliseconds
========= Parsing keeper.xml ==========
java.lang.OutOfMemoryError:
at
org.apache.xerces.utils.StringPool.ensureCapacity(StringPool.java:215)
at
org.apache.xerces.utils.StringPool.addString(StringPool.java:272)
at
org.apache.xerces.utils.CharDataChunk.addString(CharDataChunk.java:231)
at
org.apache.xerces.readers.AbstractCharReader.addString(AbstractCharReader.java:191)
at
org.apache.xerces.readers.AbstractCharReader.callCharDataHandler(AbstractCharReader.java:1259)
at
org.apache.xerces.readers.AbstractCharReader.scanContent(AbstractCharReader.java:917)
at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1134)
at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1208)
at
org.apache.xalan.xpath.dtm.DTMLiaison.parse(DTMLiaison.java:228)
at
org.apache.xalan.xslt.XSLTEngineImpl.getSourceTreeFromInput(XSLTEngineImpl.java:817)
at org.apache.xalan.xslt.Process.main(Process.java:506)
Have anybody an idea ? This was only the beginning of my
Performance-Test. At least
I need much more entries in the XML-File.
thanks,
- Andrea