无法识别的VM选项"UseParNewGC",错误:无法创建Java虚拟机 [英] Unrecognized VM option 'UseParNewGC' , Error: Could not create the Java Virtual Machine

查看:3237
本文介绍了无法识别的VM选项"UseParNewGC",错误:无法创建Java虚拟机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用jre 10.0.1 64位启动服务器. Windows启动批处理文件中JVM的设置有明显变化.以-XX:+UseParNewGC设置为错误的参考点,为了使JVM服务器从Java 10开始而不是我在Java 8中显示,需要将其更改为什么?

I am trying to start a server using jre 10.0.1 64 bit. There is an obvious change in the settings for the JVM in windows start batch files. With the setting of -XX:+UseParNewGC as the reference point of the error what would this need to be changed to in order to get a JVM server start with java 10 versus the java 8 settings I have shown?

导致错误引用的代码行是:

The line of code causing the error reference is:

set JAVA_PARAMETERS=-XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:+CMSClassUnloadingEnabled -XX:ParallelGCThreads=2 -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10

推荐答案

此收集器在JDK 9中已弃用,在JDK 10中已删除.

This collectors was deprecated in JDK 9 and removed in JDK 10.

https://bugs.openjdk.java.net/browse/JDK-8151084

新的默认设置是G1收集器,建议您查看是否满足您的需求.

The new default is the G1 collector and I suggest you see if that suits your needs.

这篇关于无法识别的VM选项"UseParNewGC",错误:无法创建Java虚拟机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆