2.8 Java Hotspot Technology

Refer to the following reference material:

Java application launcher V7

Java application launcher V8

Java command arguments

Argument

Description

‑Xms<size>

Specify the initial heap size, in bytes, of the memory allocation pool.
This value must be a multiple of 1024 greater than 1MB.
Append the letter k or K to indicate kilobytes, m or M to indicate megabytes, g or G to indicate gigabytes.

‑Xmx<size>

Specify the maximum heap size, in bytes, of the memory allocation pool.
This value must a multiple of 1024 greater than 2MB.
Append the letter k or K to indicate kilobytes, m or M to indicate megabytes, g or G to indicate gigabytes.

‑Xss<size>

Specify the thread stack size.

‑Xrs

Reduces usage of operating-system signals.

 

Example

java -Xms1G -Xmx1G -Xrs ...