完整的JVM选项列表 [英] Complete list of JVM options

查看:104
本文介绍了完整的JVM选项列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

除了官方文档之外,我找到了只有这个发布 。但它很旧且不完整(只有 -XX 选项可用)。
例如,我找不到 -XX:AutoBoxCacheMax 选项。

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?

推荐答案

你可以使用

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:有在这篇博客文章中描述了大多数人: http://stas-blogspot.blogspot.bg/2011/07/most-complete-list-of-xx-options-for.html

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

这篇关于完整的JVM选项列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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