java程序的启动参数有哪些?是否存在列表?
有时我会看到这样的情况:
-D
或者 -X
传递给 jdk/bin/java... 在哪里可以找到这些参数的完整列表?
Sometimes I see like:
-D
or
-X
that passed to jdk/bin/java...
Where I can find complete list of these parameters?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
标准选项(以及一些常见的非标准选项)列于 java 命令的文档。
还有许多特定于供应商的非标准选项 调整和调试虚拟机的行为,尤其是垃圾收集。
The standard options (and some common non-standard ones) are listed in the documentation of the java command.
There are also a lot of vendor-specific non-standard options for tuning and debugging the VM's behaviour, especially garbage collection.
只需进入 jdk 的 bin 目录进入 cmd(命令提示符)并输入 java 并按
如下方式
输入
just go to the bin dir of the jdk into the cmd(command prompt) and type java and enter
like this way
在命令行输入 java -?和 java -X 查看选项列表及其解释。
at the command line type java -? and java -X to see a list of options and their explanations.
看看那里: http://download.oracle.com/ javase/7/docs/technotes/tools/windows/java.html
Look there: http://download.oracle.com/javase/7/docs/technotes/tools/windows/java.html
手册页或使用
-help
标志运行可执行文件将显示标准参数。对于 Sun-VM 特定的
-XX:...
选项,在 Java Hotspot VM 选项 - 尽管根据定义,这是特定于 JVM 的,如果您使用替代 VM,您可能希望搜索类似的页面。The man page, or running the executable with the
-help
flag, will display the standard parameters.For Sun-VM specific
-XX:...
options, there's a list at Java Hotspot VM Options - though by definition this is JVM-specific, and you may wish to search for a similar page if you're using an alternative VM.