Conflicting collector combinations in option list; please refer to the release notes for the combina
来源:互联网 发布:防盗监控软件 编辑:程序博客网 时间:2024/05/16 06:21
最近在做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实现不同。于是,就网上找了下,看到下面的代码就清楚了:
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”项,终于找到出错的原因了,于是就把该项给去掉了,再次启动,成功!
0 0
- Conflicting collector combinations in option list; please refer to the release notes for the combina
- The download file appears to be corrupted. Please refer to the Troubleshooting section of the Insta
- Trac 不能登陆:Authentication information not available. Please refer to the installation documentation
- Ubantu安装JDK错误The download file appears to be corrupted. Please refer...
- 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
- Please make sure the -vm option in eclipse.ini is pointing to a JDK and verify that Installed JRE’s
- Conflicting collector combinations using G1 GC
- How to read the Garbage Collector output (for Sun JVM)
- After logging in to the Lotus Notes Client, you are prompted for a password in DOS-like window (Viru
- Setup failed to configure the server. Refer to the server error logs and setup error logs for more i
- 解决问题:Cannot refer to the non-final local variable user defined in an enclosing scope
- 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
- Eclipse和Maven的结合使用--Please make sure the -vm option in eclipse.ini
- Eclipse配置Maven的问题解决办法--Please make sure the -vm option in eclipse.ini
- The method to fix "Please specify the assembly explicitly in the type name."
- Warning: Please define a domain in notes.ini file by setting the DOMAIN= variable.”
- please specify the name of the executable file to be used for the debug session
- 抽象工厂模式
- oracle in与exists的使用
- 东软学习,基于bootstrap的一个简单大屏轮播主页
- DropDownList绑定数据库数据,默认自定义的文字
- 记一个IE浏览器兼容模式与IE文档模式不一致的问题
- Conflicting collector combinations in option list; please refer to the release notes for the combina
- ntohs, ntohl, htons,htonl的比较和详解
- Tesseract-ocr自己做训练样本库来进行字符识别
- OpenProcessToken令牌函数用法
- 如何写出杀手级简历(针对程序员)
- 简明 Vim 练级攻略
- J2SE之基本语法
- IOS 字符串使用大全
- oracle in字句里面不能写order by的原因