Sundar
Sundar

Reputation: 415

Any idea why jvm options are prefixed with -XX:?

Wondering what is the history behind choosing -XX: as prefix for jvm options

Upvotes: 3

Views: 599

Answers (1)

Raman Sahasi
Raman Sahasi

Reputation: 31901

From the JRockit JVM documentation:

The nonstandard command-line options of JRockit JVM are divided into two groups:

-X command-line options, which are the most commonly used nonstandard options.

You can use the -X command-line options to change the behavior of the JRockit JVM to suit the needs of different Java applications. These options do not work on other JVMs (conversely, the nonstandard options used by other JVMs do not work with the JRockit JVM).

-XX command-line options, which are often experimental options that have specific system requirements for their implementation

To implement some of the options, specific system requirements must be met, otherwise, the particular option does not work. Oracle recommends that you use these options only if you have a thorough understanding of your system. Improper usage of these options can affect the stability or performance of your system.

Upvotes: 3

Related Questions