Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/Can I submit custom JVM arguments when starting the sandbox using the `daml` CLI?Forum ↗

Can I submit custom JVM arguments when starting the sandbox using the `daml` CLI?

App Development2 posts481 views7 likesLast activity May 2020
GE
georgOP
May 2020 3

For example to control the heap size. If yes, what’s the syntax to use?

CO
cocreature
May 2020 4

There is no way to pass it via the CLI but you can pass it via environment variables. The standard environment variable that is supported by all JDKs is JAVA_TOOL_OPTIONS so something like export JAVA_TOOL_OPTIONS="-Xmx1g" before you run daml sandbox should do the trick. Depending on the JDK there are also some other environment variables, e.g., openjdk has _JAVA_OPTIONS which takes precedence over CLI flags if you really need that.

← Back to Discussions