打印所有 JVM 标志 [英] Print All JVM Flags
问题描述
发现一个有趣的 JVM 标志:
java -XX:+UnlockDiagnosticVMOptions -XX:+PrintFlagsFinal -version
它打印了数百种不同的选项,我以前从未听说过.它还打印默认值,这有助于更好地诊断 JVM 行为.另一个有趣的标志是:
-XX:+UnlockExperimentalVMOptions
有没有人知道任何解释它们的文档?
不要错过 Graal JIT 选项的 -XX:+JVMCIPrintProperties
.
在深入研究资源之前,您可以浏览以下摘录并更快地找到合适的选项:
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/>
http://www.pingtimeout.fr/2012/05/jvm-options-complete-reference.html
http://stas-blogspot.blogspot.com/2011/07/most-complete-list-of-xx-options-for.html
Found an interesting JVM Flag :
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:+JVMCIPrintProperties
for Graal JIT options.
Before dive into sources you can skim over following extracts and find suitable option faster:
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/
http://www.pingtimeout.fr/2012/05/jvm-options-complete-reference.html
http://stas-blogspot.blogspot.com/2011/07/most-complete-list-of-xx-options-for.html
这篇关于打印所有 JVM 标志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!