How do I increase the maximum Java heap size when compiling?


Question:

When compiling a large program I got the following error:

The system is out of resources.
java.lang.OutOfMemoryError: Java heap space 


How do I increase the maximum heap size?

Answer:

Use the Java -Xmx option. -Xmx128m increases the maximum heap size to 128 MB. 

You can compile with "java -Xmx128m com.iscobol.compiler.Pcc LARGEPROG.CBL", or with "iscc -J-Xmx128m LARGEPROG.CBL"


Article ID: 94
Created: September 2, 2009
Last Updated: September 2, 2009
Author: Support KB Author

Online URL: https://support.veryant.com/support/phpkb/article.php?id=94