A searchable collection of JVM options
General notes
The
JavaTM HotSpot VM Options
page makes some good points regarding the different types of options, which should be followed when reading this document as well. To paraphrase:
- Standard options recognized by the Java HotSpot VM are described on the Java Application Launcher reference pages (i.e., for Windows: 1.5, 1.6, 1.7,
1.8) . Documentation of the latest versions contains also some non-standard options.
- Options that begin with -X are non-standard (not guaranteed to be supported on all VM implementations).
- Because the -XX options are "Advanced Runtime Options" that have specific system requirements for correct operation and may require privileged access to system configuration parameters, they are not recommended for casual use. These options are also subject to change without notice.
- Starting from java 1.6 you can use java
-XX:+PrintFlagsFinal
to print available -XX options and their applied value. Some diagnostic and experimental options can be added to list with following options: -XX:+UnlockDiagnosticVMOptions
-XX:+UnlockExperimentalVMOptions
(for Sun) -XX:+UnlockInternalVMOptions
(for JRockit)
Please submit any comments, corrections, additions to reins - at - altervista.org.
You can vist my blog here: Mariano WebLog
Searching JVM options with ''
-client
Type: bool
JVM versions:
- HotSpot 1.8.0
- HotSpot 1.7.0
- HotSpot 1.6.0
- HotSpot 1.5.0
- HotSpot 1.4.2
- HotSpot 1.4.1
- HotSpot 1.4.0
- HotSpot 1.3.1
Description:
Use Client HotSpot VM. Must be first option.
-server
Type: bool
JVM versions:
- HotSpot 1.8.0
- HotSpot 1.7.0
- HotSpot 1.6.0
- HotSpot 1.5.0
- HotSpot 1.4.2
- HotSpot 1.4.1
- HotSpot 1.4.0
- HotSpot 1.3.1
Description:
Use Server HotSpot VM. Must be first option.
-verbose[:class|gc|jni]
Type: bool
JVM versions:
- HotSpot 1.8.0
- HotSpot 1.7.0
- HotSpot 1.6.0
- HotSpot 1.5.0
- HotSpot 1.4.2
- HotSpot 1.4.1
- HotSpot 1.4.0
- HotSpot 1.3.1
Description:
enable output of various pieces of the VM. specifying options twice may produce more detailed output.
Privacy Policy