简体   繁体   English

无法识别的 VM 选项“ShenandoahGCHeuristics=compact”

[英]Unrecognized VM option 'ShenandoahGCHeuristics=compact'

On mac I am trying to use Shenandoah on java with the flags:在 mac 上,我试图在带有标志的 java 上使用 Shenandoah:

-XX:ShenandoahGCHeuristics=compact and -XX:+UseShenandoahGC

and I get the same error on java 13 and 12:我在 java 13 和 12 上遇到了同样的错误:

Unrecognized VM option 'ShenandoahGCHeuristics=compact' Error: Could not create the Java Virtual Machine.无法识别的 VM 选项“ShenandoahGCHeuristics=compact”错误:无法创建 Java 虚拟机。 Error: A fatal exception has occurred.错误:发生了致命异常。 Program will exit.程序将会退出。

and the error:和错误:

Error occurred during initialization of VM Option -XX:+UseShenandoahGC not supported VM Option -XX:+UseShenandoahGC 不支持初始化时出错

Does anyone know the reason for this or how to fix it?有谁知道这是什么原因或如何解决?

My guess would be that you are using the OpenJDK binary that does not include Shenandoah.我的猜测是您使用的是不包含 Shenandoah 的 OpenJDK 二进制文件。 Today, the only vendor who does not ship Shenandoah in their binaries is Oracle (those builds you get at jdk.java.net).今天,唯一没有在二进制文件中提供 Shenandoah 的供应商是Oracle (您在 jdk.java.net 上获得的那些版本)。 Try to pick up any other OpenJDK distribution: your OS package manager, AdoptOpenJDK, SAPMachine, Amazon Corretto, etc.尝试选择任何其他 OpenJDK 发行版:您的操作系统包管理器、AdoptOpenJDK、SAPMachine、Amazon Corretto 等。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM