Conflicting collector combinations in option list; please refer to the release notes for the combina
2014-09-17 11:45
627 查看
最近在做JVM优化配置时,配置如下:
set "JAVA_OPTS=-Xms512M -Xmx512M -Xmn128M -XX:PermSize=256M -XX:MaxPermSize=256M -XX:SurvivorRatio=8 -XX:MaxTenuringThreshold=7 -XX:GCTimeRatio=19 -Xnoclassgc -XX:+DisableExplicitGC -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSPermGenSweepingEnabled -XX:+UseCMSCompactAtFullCollection -XX:CMSFullGCsBeforeCompaction=0 -XX:+CMSClassUnloadingEnabled -XX:-CMSParallelRemarkEnabled -XX:CMSInitiatingOccupancyFraction=70 -XX:SoftRefLRUPolicyMSPerMB=0"
发现在win7中的一个jvm中可以正常启动,jdk为sun jdk,但是在linux中的一个jvm中,jdk为Open Jdk,出现了如题的异常,猜想应该是两个jvm的GC实现不同。于是,就网上找了下,看到下面的代码就清楚了:
看过上面的代码,再看下我的配置项中存在“UseParNewGC”项,终于找到出错的原因了,于是就把该项给去掉了,再次启动,成功!
set "JAVA_OPTS=-Xms512M -Xmx512M -Xmn128M -XX:PermSize=256M -XX:MaxPermSize=256M -XX:SurvivorRatio=8 -XX:MaxTenuringThreshold=7 -XX:GCTimeRatio=19 -Xnoclassgc -XX:+DisableExplicitGC -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSPermGenSweepingEnabled -XX:+UseCMSCompactAtFullCollection -XX:CMSFullGCsBeforeCompaction=0 -XX:+CMSClassUnloadingEnabled -XX:-CMSParallelRemarkEnabled -XX:CMSInitiatingOccupancyFraction=70 -XX:SoftRefLRUPolicyMSPerMB=0"
发现在win7中的一个jvm中可以正常启动,jdk为sun jdk,但是在linux中的一个jvm中,jdk为Open Jdk,出现了如题的异常,猜想应该是两个jvm的GC实现不同。于是,就网上找了下,看到下面的代码就清楚了:
bool Arguments::check_gc_consistency() { bool status = true; // Ensure that the user has not selected conflicting sets // of collectors. [Note: this check is merely a user convenience; // collectors over-ride each other so that only a non-conflicting // set is selected; however what the user gets is not what they // may have expected from the combination they asked for. It's // better to reduce user confusion by not allowing them to // select conflicting combinations. uint i = 0; if (UseSerialGC) i++; if (UseConcMarkSweepGC || UseParNewGC) i++; if (UseParallelGC || UseParallelOldGC) i++; if (UseG1GC) i++; if (i > 1) { jio_fprintf(defaultStream::error_stream(), "Conflicting collector combinations in option list; " "please refer to the release notes for the combinations " "allowed\n"); status = false; } return status; }
看过上面的代码,再看下我的配置项中存在“UseParNewGC”项,终于找到出错的原因了,于是就把该项给去掉了,再次启动,成功!
相关文章推荐
- Please make sure the -vm option in eclipse.ini is pointing to a JDK and verify that Installed JRE’s
- Cannot expand the COM+ list in the Component Services UI due to MSDTC service permission issue
- Please make sure the -vm option in eclipse.ini is pointing to a JDK and verify that Installed JRE’s
- linux下 mvn install 报错 Please refer to E:\maven\web_nanchang\target\surefire-reports for the indivi..
- After logging in to the Lotus Notes Client, you are prompted for a password in DOS-like window (Viru
- Unable to list target platforms. Please make sure the android sdk path is correct. See the Console for more details.
- Please make sure the -vm option in eclipse.ini is pointing to a JDK and verify that Installed JRE’s
- Please make sure the -vm option in eclipse.ini is pointing to a JDK and verify that Installed JRE’s are also using JDK installs
- How to enable USB selective suspend and system wake in the UMDF driver for a USB device
- Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005.
- How to add a new "CustomAction" in ECB for a specific list
- The method to fix "Please specify the assembly explicitly in the type name."
- No Netinstall Server currently available, Please wait for the program to start
- Here's an example that shows how to enumerate through the features of a selection set, returning the value of each field in the attribute table except for the geometry colum.
- Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.
- How to build the environment of XPCOM in Windows XP
- How to add the cracked dlls in GAC and How to release
- The Windows SDK team is proud to announce that the RTM release of the Microsoft Windows SDK for Windows Server 2008 and .NET Fra
- COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80070005.
- How to set the style in valuelist