arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

JVM Args

The following JVM Args are supported when starting the embedded server.

hashtag
heapSize

You can set the max heap size the server is allowed to have (-Xmx) by passing the heapSize parameter to the start command. This parameter defaults to megabytes but you can specify any valid suffix.

In server.json

hashtag
minHeapSize

You can set the starting heap size for the server (-Xms) by passing the minHeapSize parameter to the start command. This parameter defaults to megabytes but you can specify any valid suffix.

In server.json

hashtag
Ad Hoc JVM Args

You can specify ad-hoc JVM args for the server with the JVMArgs parameter.

In server.json

JVM args can also be set an array of strings which prevents you from needing to escape or quote anything.

Or via the CLI like so:

hashtag
Ad Hoc Runwar Options

You can specify ad-hoc options for the underlying Runwar library using the RunwarArgs parameter.

In server.json

Runwar args can also be set an array of strings which prevents you from needing to escape or quote anything.

Or via the CLI like so:

start heapSize=1024
server set JVM.heapSize=1024
server set JVM.heapSize=2G
server show JVM.heapSize
start minHeapSize=1024
server set JVM.minHeapSize=1024
server set JVM.minHeapSize=2G
server show JVM.minHeapSize
start JVMArgs="-XX:MaxGCPauseMillis\=200"
server set JVM.args="-XX:MaxGCPauseMillis\=200"
server show JVM.args
{
  "jvm" : {
    "args" : [
       "-XX:+UseG1GC",
       "-XX:-CreateMinidumpOnCrash",
       "--add-opens=java.base/java.net=ALL-UNNAMED"
    ]
  }
}
server set jvm.args=["-XX:+UseG1GC"]
server set jvm.args=["-XX:-CreateMinidumpOnCrash"] --append
server set jvm.args=["--add-opens=java.base/java.net=ALL-UNNAMED"] --append
start RunwarArgs="--sendfile-enable false"
server set runwar.args="--sendfile-enable false"
server show runwar.args
{
  "runwar" : {
    "args" : [
      "--runwar-option",
      "value",
      "--runwar-option2",
      "value2"
    ]
  }
}
server set runwar.args=["--runwar-option","value"]
server set runwar.args=["--runwar-option2","value2"] --append