CLion Out of Memory Issues

假装没事ソ 提交于 2019-12-11 12:42:34

问题


I ran a simple CLion project with only two directories which each contain a single file. However, I was getting this message “Out of Memory”. I increased the Xmx from 2GB to 4GB. I believe this is more than enough. How can I fix this problem?

This is the settings in the clion64.exe.vmoptions file:

   -Xss2m
   -Xms256m 

   -Xmx4000m

   -XX:MaxPermSize=350m

   -XX:ReservedCodeCacheSize=96m

   -XX:+UseConcMarkSweepGC

   -XX:SoftRefLRUPolicyMSPerMB=50

   -ea

   -Dsun.io.useCanonCaches=false

   -Djava.net.preferIPv4Stack=true

回答1:


try there settings:

-Xss2m

-Xms256m

-Xmx2000m

-XX:NewSize=128m

-XX:MaxNewSize=128m

-XX:MaxPermSize=350m

-XX:ReservedCodeCacheSize=96m

-XX:+UseConcMarkSweepGC

-XX:SoftRefLRUPolicyMSPerMB=50

-ea

-Dsun.io.useCanonCaches=false

-Djava.net.preferIPv4Stack=true

refer to this page for more info: link



来源:https://stackoverflow.com/questions/30521729/clion-out-of-memory-issues

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