Intellij Idea15 CE fails to launch with -XX:+UseG1GC

点点圈 提交于 2019-12-11 09:13:53

问题


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

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.


回答1:


Use this config:

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


来源:https://stackoverflow.com/questions/41365901/intellij-idea15-ce-fails-to-launch-with-xxuseg1gc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!