Date: Thu, 28 Mar 2024 12:14:40 -0400 (EDT)
Message-ID: <60944062.28282.1711642480365@lyrasis1-roc-mp1>
Subject: Exported From Confluence
MIME-Version: 1.0
Content-Type: multipart/related;
boundary="----=_Part_28281_331203156.1711642480365"
------=_Part_28281_331203156.1711642480365
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Content-Location: file:///C:/exported.html
Java HotSpot VM Options recommendations
Java HotSpot VM Options recommendations
Recommended Java Settings
The following Java HotSpot VM Options are recommended for running Fedora=
4:
For Linux JVMs, see: =
http://docs.oracle.com/javase/8/docs/technotes/tools/unix/java.html
-=
Djava.awt.headless=3Dtrue
- Headless mode is a system configuration in which the display devic=
e, keyboard, or mouse is lacking. Sounds unexpected, but actually you can p=
erform different operations in this mode, even with graphic data.
-server
- The JDK includes two flavors of the VM -- a client-side offering, and a=
VM tuned for server applications. These two solutions share the Java HotSp=
ot runtime environment code base, but use different compilers that are suit=
ed to the distinctly unique performance characteristics of clients and serv=
ers. These differences include the compilation inlining policy and heap def=
aults. Although the Server and the Client VMs are similar, the Server =
VM has been specially tuned to maximize peak operating speed. It is intende=
d for executing long-running server applications, which need the fastest po=
ssible operating speed more than a fast start-up time or smaller runtime me=
mory footprint.
-Dfi=
le.encoding=3DUTF-8
- Tell the JVM to use UTF-8 as an encoding for text files to be more plat=
form independent
-Xms512m
- Set the initial Java Heap memory size to 512 Megabytes
-Xmx1024m
- Set the maximal Java Heap memory size to 1024 Megabytes
-XX:NewSi=
ze=3D256m
- Set the initial size of new generation to 256 Megabytes
-XX:Ma=
xNewSize=3D256m
- Set the maximum size of new generation to 256 Megabytes
- Set the size of the allocated class metadata space that will trigger a =
garbage collection the first time it is exceeded to 64 Megabytes
- Set the maximum size of native memory that can be allocated for class m=
etadata to 256 Megabytes. This is especially recommended when redeploying F=
edora 4 often, since otherwise OutOfMemory errors will occur.
-XX:+UseG1GC
- Enables the use of the garbage-first=
(G1) garbage collector. It is a server-style garbage collector, targeted f=
or multiprocessor machines with a large amount of RAM. It meets GC pause ti=
me goals with high probability, while maintaining good throughput. The G1 c=
ollector is recommended for applications requiring large heaps (sizes of ar=
ound 6 GB or larger) with limited GC latency requirements (stable and predi=
ctable pause time below 0.5 seconds).
-XX:+=
DisableExplicitGC
- Disable calls to System.gc(), JVM still performs garbage collecti=
on when necessary.
------=_Part_28281_331203156.1711642480365--