English 中文(简体)
印刷 旗帜
原标题:Print All JVM Flags

创办人 旗帜:

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

It prints hundreds of various options, I never heard about before. It also prints default values, that helps diagnose JVM behaviors better. Another interesting flag is:

-XX:+UnlockExperimentalVMOptions

Does anyone knows of any documentation which explains each one of them ?

最佳回答

Do not miss also -XX:+JVERCIPrintProperties for Graal JIT options.

在进入源头之前,你可以ski过以下提取物,并更快地找到合适的选择:

https://chriswhocodes.com/ (OracleJDK) 6/7/8/9/10/11/12, OpenJDK 8/9/10/11, Graal CE/EE, OpenJ9, Zing

http://jvm-options.tech.xebia.fr/

问题回答

The Best documentation I ve found is the source

I ve used this Q&A用于建造一座浴室。 有了这一节奏,你可以操作<条码>java-XX:+AggressiveOpts -XX:+ Unlock DiagnosticVMOptions - XX:+ - XX:+PrintFlagsFinal -XX:+PrintFlags WithComments -version。

从来源目录上看,你可以执行(假设你正在使用CFC、Cygwin等):

grep -FR  UnlockExperimentalVMOptions  hotspot/

或者,以下(仅看*.cpp*.hpp文档):

find hotspot/ -name  *.[ch]pp  -exec grep -F  UnlockExperimentalVMOptions  {} +

然后看来文方的档案。 或许是没有一份文件来描述所有选择的最好理由,就是其中一些选择最好留给那些真正理解联合核查机制的人,而这样做的最佳方式是熟悉源代码。

因此,在(几乎)伟大的master ,use the source!

以下指挥机构也有助于检索所有选择清单。

java - XX:+PrintFlagsFinal -version





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签