打印所有 JVM 标志 [英] Print All JVM Flags

查看:15
本文介绍了打印所有 JVM 标志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

发现一个有趣的 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆