Search Results

An easy way to resolve the OutOfMemory error in java

Jan 7

Written by:
1/7/2013 6:26 PM  RssIcon

An easy way to resolve it is to use tis to increase the maximum heap size by using JVM options -Xmx512M. This will immediately solve your OutOfMemoryError.

For example, using the following command with the XSLT processor (Saxon Java):

java -Xms1024m -Xmx1024m -jar saxon9he.jar -s:source2.xml -xsl:query.xsl -o:ids2.txt

 

Tags: memory , java , performance
Categories:

Search blog