# Use -Xmx1024M option with MMM CLI

**URL:** <https://forum.microej.com/t/use-xmx1024m-option-with-mmm-cli/1212>\
**Category:** Technical Support\
**Tags:** sdk\
**Created:** [January 3, 2023, 12:00pm UTC](https://forum.microej.com/t/use-xmx1024m-option-with-mmm-cli/1212 "2023-01-03T12:00:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![f.webb](https://forum.microej.com/letter_avatar_proxy/v4/letter/f/848f3c/32.png) [@f.webb](https://forum.microej.com/u/f.webb)\
**Post date:** [January 3, 2023, 12:00pm UTC](https://forum.microej.com/t/use-xmx1024m-option-with-mmm-cli/1212/1 "2023-01-03T12:00:46Z")

</div>

Hello,

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

Regards,

Fabrice

---

<div class="post-metadata">

**Author:** ![tdelhomenie](https://forum.microej.com/user_avatar/forum.microej.com/tdelhomenie/32/144_2.png) [@tdelhomenie](https://forum.microej.com/u/tdelhomenie)\
**Post date:** [January 3, 2023, 4:42pm UTC](https://forum.microej.com/t/use-xmx1024m-option-with-mmm-cli/1212/2 "2023-01-03T16:42:04Z")

</div>

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:

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

```

by

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

```

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

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

```

by

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

```

---

<div class="post-metadata">

**Author:** ![f.webb](https://forum.microej.com/letter_avatar_proxy/v4/letter/f/848f3c/32.png) [@f.webb](https://forum.microej.com/u/f.webb)\
**Post date:** [January 5, 2023, 2:54pm UTC](https://forum.microej.com/t/use-xmx1024m-option-with-mmm-cli/1212/3 "2023-01-05T14:54:44Z")

</div>

Hello Thomas,

All right, thanks for the information.

Fabrice
