问题描述
JVM有很多参数.有些以-开头,例如-server,-client.有些以-X开头,例如-Xms,-Xmx.有些以-XX开头,例如-XX:PermSize,-XX:UseParallelGC.
There are lots of parameters for JVM. Some start with -, such as -server, -client. Some start with -X, such as -Xms, -Xmx. Some start with -XX, such as -XX:PermSize, -XX:UseParallelGC.
这是我的问题.由于这些参数没有重复,为什么要以这么多不同的前缀开头?为什么不只使用-".我的猜测是有某种标准. -XX参数是扩展设置,并非所有JVM impls都支持.是这样吗?
So here is my question. Since these parameters are not duplicated, why start with so many different prefix? Why not just use "-". My guess is there are some kind of standards for this. The -XX parameters are extension settings and not supported by all JVM impls. Is that so?
推荐答案
是的,它的支持级别.将来的版本中支持普通(-")选项,并且不支持X.此外,不建议您随意使用XX"选项.
Yeah, its the level of support. The vanilla ("-") options are supported in future versions, and the X are not supported. Further, the XX options are "not recommended for casual use".
有关示例,请参阅IBM的JVM文档: http://publib.boulder.ibm.com/infocenter/javasdk/v6r0/index.jsp?topic=%2Fcom.ibm .java.doc.user.aix64.60%2Fdiag%2Fappendixes%2Fcmdline%2Fcommands_jvm.html
For an example, see IBM's JVM documentation: http://publib.boulder.ibm.com/infocenter/javasdk/v6r0/index.jsp?topic=%2Fcom.ibm.java.doc.user.aix64.60%2Fdiag%2Fappendixes%2Fcmdline%2Fcommands_jvm.html
这篇关于JVM中的-,-X参数和-XX参数之间有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!