java程序的启动参数有哪些?是否存在列表?

发布于 2024-12-15 12:24:52 字数 112 浏览 2 评论 0原文

有时我会看到这样的情况:

-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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

孤独患者 2024-12-22 12:24:52

标准选项(以及一些常见的非标准选项)列于 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.

青衫负雪 2024-12-22 12:24:52

只需进入 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

enter image description here

嗼ふ静 2024-12-22 12:24:52

在命令行输入 java -?和 java -X 查看选项列表及其解释。

at the command line type java -? and java -X to see a list of options and their explanations.

棒棒糖 2024-12-22 12:24:52

手册页或使用 -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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文