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 -Xms512m -Xmx1024m -XX:NewSize=256m -XX:MaxNewSize=256m -XX:PermSizeMetaspaceSize=256m -XX:MaxPermSizeMaxMetaspaceSize=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 occur.
-XX:+DisableExplicitGC

...