Use -Xmx1024M option with MMM CLI

Hello,

Is it possible to use the -Xmx1024M option with the MMM CLI ?

Regards,

Fabrice

Hello,

You cannot pass this option in the command line directly but you can edit the script file bin/mmm[.bat].
On Windows you can replace the lines:

"%JAVACMD%" ^
  -classpath "%MMM_HOME%/bin;%MMM_HOME%/lib/*" ^
  com.microej.cli.MmmCli %*

by

"%JAVACMD%" ^
  -classpath "%MMM_HOME%/bin;%MMM_HOME%/lib/*" -Xmx1024M ^
  com.microej.cli.MmmCli %*

And on Linux/macOS, you can replace the lines:

exec "$JAVACMD" \
  -classpath "${CLASSPATH}" \
  com.microej.cli.MmmCli "$@"

by

exec "$JAVACMD" \
  -classpath "${CLASSPATH}" -Xmx1024M \
  com.microej.cli.MmmCli "$@"

Hello Thomas,

All right, thanks for the information.

Fabrice