How do I increase the maximum Java heap size when compiling?
Estimated Reading Time: < 1 Minute
Question:
When compiling a large program I got the following error:
How do I increase the maximum heap size?
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"
You can compile with "java -Xmx128m com.iscobol.compiler.Pcc LARGEPROG.CBL", or with "iscc -J-Xmx128m LARGEPROG.CBL"