Problem
Various commands in the MettleCI CLI are throwing a java.lang.OutOfMemoryError: Java heap space
error.
Solution
Info |
---|
If you are using MettleCI CLI versions between |
...
Default maximum heap size set by MettleCI CLI
is 512m
Unix/Linux
Code Block |
---|
$ export JAVA_OPTIONS="-Xms32m -Xmx1024m" $ ./mettleci datastage execute -domain svcs.host:9443 -server engn.host -username isadmin -password ***** -project dstage1 -jobname myfirstjob |
Windows
Code Block |
---|
C:\mci\cli> set JAVA_OPTIONS=-Xms32m -Xmx1024m C:\mci\cli> mettleci datastage execute -domain svcs.host:9443 -server engn.host -username isadmin -password ***** -project dstage1 -jobname myfirstjob |
Expand | title | Soltion
Solution for MettleCI CLI version
...
138 or
...
earlier
If you are using are using MettleCI CLI
version 1.0-138 or below
, you will need to edit the mettleci
or mettleci.cmd
file
Search for
Code Block |
---|
JAVA_OPTIONS=-Xms32m -Xmx512m |
and increase the -Xmx
value
Code Block |
---|
JAVA_OPTIONS=-Xms32m -Xmx1024m |