How do I increase the maximum Java heap size when compiling?
Question ID : 94
Created on 2009-09-02 at 2:19 PM
Author : Veryant Support [support@veryant.com]
Online URL : http://support.veryant.com/support/phpkb/question.php?ID=94
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"
Back to Original Question