Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

No Format
-Djava.awt.headless=true -Dfile.encoding=UTF-8 -server -Xms512mXms1024m -Xmx1024mXmx2048m -XX:NewSizeMaxMetaspaceSize=256m512m -XX:MaxNewSize=256m+UseG1GC -XX:PermSize=256m -XX:MaxPermSize=256m -XX:+DisableExplicitGC

For Linux JVMs, see: http://docs.oracle.com/javase/8/docs/technotes/tools/unix/java.html

-Djava.awt.headless=true
  • Headless mode is a system configuration in which the display device, keyboard, or mouse is lacking. Sounds unexpected, but actually you can perform different operations in this mode, even with graphic data.

...

  • Set the maximal Java Heap memory size to 1024 Megabytes
-XX:NewSize=256m
  • Set the default initial size of new generation to 256 Megabytes
-XX:MaxNewSize=256m
  • Set the default maximum size of new generation to 256 Megabytes
-XX:

...

MetaspaceSize=64m
  • Set the initial HotSpot PermGen Memory size size of the allocated class metadata space that will trigger a garbage collection the first time it is exceeded to 64 Megabytes
-XX:

...

MaxMetaspaceSize=256m
  • Set the maximum PermGen size size of native memory that can be allocated for class metadata to 256 Megabytes. This is especially recommended when redeploying Fedora 4 often, since otherwise OutOfMemory in the PermGen space errors will occurerrors will occur.
-XX:+UseG1GC
  • Enables the use of the garbage-first (G1) garbage collector. It is a server-style garbage collector, targeted for multiprocessor machines with a large amount of RAM. It meets GC pause time goals with high probability, while maintaining good throughput. The G1 collector is recommended for applications requiring large heaps (sizes of around 6 GB or larger) with limited GC latency requirements (stable and predictable pause time below 0.5 seconds).
-XX:+DisableExplicitGC
  •  Disable calls to System.gc(), JVM still performs garbage collection when necessary.

...