This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: OutOfMemoryError when transforming with Xalan XSLT-processor



> I get an "java.lang.OutOfMemoryError" message when I try to 
> transform my
> XML-file with the Xalan XSLT Processor. It is a big file 
> (~8Mb) and if I
> chop it down it works fine. The problem occur when the Xerces 
> parser is
> parsing the XML-file. Does anyone know how to solve this 
> problem? Can I
> change the parser to use SAX instead of DOM, and is this a 
> solution to my
> problem?

You have two possible solutions:

1) Tell "java" that you need a bigger heap, this is either the "-mx size" or the "-Xmx size" option, like "java -mx size org.apac...."

2) If you run on a Microsoft platform, use "jview" instead of "java".  It does not have a maximum heap size.

-- 
  Thorbjørn Ravn Andersen             "...and...Tubular Bells!"
  http://bigfoot.com/~thunderbear


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]