Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JVM Options List - still being maintained post Oracle?

Is the JVM Options List still being maintained anywhere? It seems to have disappeared from Oracle's website, but luckily the Wayback Machine has a copy.

like image 996
Rich Avatar asked Oct 20 '11 08:10

Rich


People also ask

Where are JVM options set?

To update JVM options manually for an MSI installation: Open the youtrack. jvmoptions file. For an MSI distribution the file is located in the %programdata%\JetBrains\YouTrack\conf directory. Edit the JVM options directly in the file.

What are the JVM options?

JVM Options Overview There are three types of options that you can add to your JVM, standard, non-standard and advanced options. If you apply an advanced option, you always precede the option with -XX: . Similarly if you're using a non-standard option, you'll use -X .

What does XX mean in Java?

Java™ VM command-line options that are specified with -XX: are not checked for validity. If the VM does not recognize the option, the option is ignored. These options can therefore be used across different VM versions without ensuring a particular level of the VM.


Video Answer


1 Answers

Use java -XX:+PrintFlagsFinal to print available -XX options. More diagnostic and experimental options can be added to list with following options: -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions (for Sun) -XX:+UnlockInternalVMOptions (for JRockit)

NOTE: Current version of javac docs for Java 8 contains list of most -XX options: https://docs.oracle.com/javase/8/docs/technotes/tools/windows/java.html

Oracle's guide with 80+ options: http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html

Pierre Laporte's service with full search for 907 options (supports JDK 8): http://jvm-options.tech.xebia.fr/

Stas's guide with 800+ options: http://stas-blogspot.blogspot.com/2011/07/most-complete-list-of-xx-options-for.html

Collection of options for 1.6.0 and older versions of JVM: http://www.xenoc.demon.co.uk/A%20Collection%20of%20JVM%20Options.htm

like image 149
Andriy Plokhotnyuk Avatar answered Sep 20 '22 16:09

Andriy Plokhotnyuk