java 无法识别的 VM 选项
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/14152768/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Unrecognized VM option
提问by randeepsp
I have seen an issue with ReduceInitialCardMarks, where sometimes on the same JVM on one machine it does not recognize this VM option were as on another machine it works perfectly fine. The VM does not start. What is making it fail sometimes ? When does an unrecognized VM option occur ?
我看到过 ReduceInitialCardMarks 的一个问题,有时在一台机器上的同一个 JVM 上它无法识别这个 VM 选项,而在另一台机器上它工作得很好。VM 未启动。是什么让它有时失败?何时出现无法识别的 VM 选项?
回答by randeepsp
The issue is with the VM. Java Server VM recognizes this option while Java Client VM does not.
问题出在虚拟机上。Java Server VM 识别此选项,而 Java Client VM 不识别。
回答by Audrius Meskauskas
Type java
without parameters to see that the particular virtual machine supports. Type java -X
to see help on extended options. Especially extended options may not work on other virtual machines, only very few of them (like -Xmx
) are somewhat more standard.
键入java
不带参数以查看特定虚拟机支持。键入java -X
以查看有关扩展选项的帮助。特别是扩展选项可能不适用于其他虚拟机,只有极少数(如-Xmx
)更标准。
Your question does not contain enough information to advice anything more.
您的问题没有包含足够的信息来提供更多建议。