java OutofMemoryError
        Posted  
        
            by dqm
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by dqm
        
        
        
        Published on 2010-03-15T05:27:19Z
        Indexed on 
            2010/03/15
            5:29 UTC
        
        
        Read the original article
        Hit count: 450
        
java
|outofmemoryexception
I am running the following command on unix box.
java -Xms3800m -Xmx3800m org.apache.xalan.xslt.Process -out Cust.txt -in test13l.xml -xsl CustDetails.xsl
It is a java command, which calls Xalan processor to parse through the xml file (test131.xml) using the xsl stylesheet (CustDetails.xsl) and returns Cust.txt.
The command works fine and the output is generated. It takes 12 minutes to process an xml file size of 1.1 GB. It takes 22 minutes to process a file size of 1.44 GB. However, when I try to process a file size of 1.66 GB, it errors out with the following message:
(Location of error unknown)XSLT Error (java.lang.OutOfMemoryError): null
I have increased the java heap size to 3800 not sure what I can do more.
Many thanks for your help.
© Stack Overflow or respective owner