Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Complete list of JVM options [duplicate]

Tags:

Besides official documentation I have found only this post. But it is quite old and incomplete (only -XX options available). For example, I couldn't find -XX:AutoBoxCacheMax option in none of them.

Where the complete list can be found if it exists?

like image 681
Nolequen Avatar asked Mar 29 '17 08:03

Nolequen


People also ask

What are the JVM options?

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 . Standard options don't prepend anything to the option.

Where can I find JVM options?

options configuration file. The default location of this file is config/jvm. options (when installing from the tar or zip distributions) and /etc/elasticsearch/jvm. options (when installing from the Debian or RPM packages).

How can I see the JVM options in Linux?

If the application is running on Linux, you can use ps -ef | grep java to identify the Java process and look at the JVM options printed as process arguments. If more than one Java process is going on the system, then you may require to go with a keyword that is unique to your Java application.

What are the JVM parameters?

Now let's discuss the most frequently used JVM Parameters which are 3 namely as follows: Java Heap Size. Garbage Collector. Print GC.


1 Answers

You can use

java -XX:+UnlockDiagnosticVMOptions -XX:+PrintFlagsFinal -version 

to print all options and their defaults. If you have a debug build you can use this command to print comments for the various options as well:

java -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -XX:+PrintFlagsFinal -XX:+PrintFlagsWithComments -version 

PS: There are descriptions for most of them in this blog post: http://stas-blogspot.blogspot.bg/2011/07/most-complete-list-of-xx-options-for.html

like image 199
Svetlin Zarev Avatar answered Sep 28 '22 11:09

Svetlin Zarev