Java "Unrecognized VM Option"
Java "Unrecognized VM Option"
我 运行 Java 使用此命令:
java -Xms3G -Xmx3G -Xmn1G -XX:TargetSurvivorRatio=80 -XX:MaxTenuringThreshold=15 -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+DisableExplicitGC -XX:MaxGCPauseMillis=40 -XX:GCPauseIntervalMillis=150 -XX:+AgressiveOpts -XX:+TieredCompilation -XX:ReservedCodeCacheSize=1G -XX:+UseCodeCashFlushing -XX:CompileThreshold=1000 -jar spigot.jar
也在这里,不带滚动条:
java -Xms3G -Xmx3G -Xmn1G -XX:TargetSurvivorRatio=80 -XX:MaxTenuringThreshold=15 -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+DisableExplicitGC -XX:MaxGCPauseMillis=40 -XX:GCPauseIntervalMillis=150 -XX:+AgressiveOpts -XX:+TieredCompilation -XX:ReservedCodeCacheSize=1G -XX:+UseCodeCashFlushing -XX:CompileThreshold=1000 -jar spigot.jar
而且,在 运行 时,我收到此错误:
Unrecognized VM option: 'AgressiveOpts'
Did you mean '(+/-)AgressiveOpts'?
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occured. Program will exit.
我知道我的命令一定是错误的,但我无法确定问题所在。
您使用的参数有错字。它应该是 AggressiveOpts
,而不是两个 "g"。
我 运行 Java 使用此命令:
java -Xms3G -Xmx3G -Xmn1G -XX:TargetSurvivorRatio=80 -XX:MaxTenuringThreshold=15 -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+DisableExplicitGC -XX:MaxGCPauseMillis=40 -XX:GCPauseIntervalMillis=150 -XX:+AgressiveOpts -XX:+TieredCompilation -XX:ReservedCodeCacheSize=1G -XX:+UseCodeCashFlushing -XX:CompileThreshold=1000 -jar spigot.jar
也在这里,不带滚动条:
java -Xms3G -Xmx3G -Xmn1G -XX:TargetSurvivorRatio=80 -XX:MaxTenuringThreshold=15 -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+DisableExplicitGC -XX:MaxGCPauseMillis=40 -XX:GCPauseIntervalMillis=150 -XX:+AgressiveOpts -XX:+TieredCompilation -XX:ReservedCodeCacheSize=1G -XX:+UseCodeCashFlushing -XX:CompileThreshold=1000 -jar spigot.jar
而且,在 运行 时,我收到此错误:
Unrecognized VM option: 'AgressiveOpts'
Did you mean '(+/-)AgressiveOpts'?
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occured. Program will exit.
我知道我的命令一定是错误的,但我无法确定问题所在。
您使用的参数有错字。它应该是 AggressiveOpts
,而不是两个 "g"。