Intellij Idea15 CE无法使用-XX:+ UseG1GC启动 [英] Intellij Idea15 CE fails to launch with -XX:+UseG1GC

查看:567
本文介绍了Intellij Idea15 CE无法使用-XX:+ UseG1GC启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用字符串实习来测试运行情况,以查看它是否有助于缓解intellij的大量内存需求.为了使用Java 8的内置实习,您需要运行G1GC.但是,将此参数添加到用户idea.vmoptions文件中会导致jvm无法启动.绝对仅此参数,其他收集器似乎不是问题.捆绑的jre是8u40,我正在OS X上运行.

I am trying to test running with string interning to see if it helps ease the massive memory requirements of intellij. In order to use java 8's built in interning you need to run the G1GC. However adding this parameter to the user idea.vmoptions file causes the jvm to fail to start. It is definitely this parameter only and other collectors seem not to be an issue. The bundled jre is 8u40 and i'm running on OS X.

12/28/16 11:06:24.559 AM idea[15003]: JNI_CreateJavaVM (/Applications/IntelliJ IDEA 15 CE.app/Contents/jre/jdk) failed: 4294967295

12/28/16 11:06:24.559 AM idea[15003]: JNI_CreateJavaVM (/Applications/IntelliJ IDEA 15 CE.app/Contents/jre/jdk) failed: 4294967295

我还感到奇怪的是,该应用程序是作为平台本机二进制文件启动的,该二进制文件通过jni创建了jvm,但这可能不合时宜.

I also find it odd that the application is launched as a platform native binary which creates a jvm via jni, but that may be beside the point.

推荐答案

使用此配置:

-XX:-UseParallelGC
-XX:-UseConcMarkSweepGC
-XX:+UseG1GC

这篇关于Intellij Idea15 CE无法使用-XX:+ UseG1GC启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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