CLion Out of Memory Issues

2019-08-14 17:08发布

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

标签: clion
1条回答
Fickle 薄情
2楼-- · 2019-08-14 17:45

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

查看更多
登录 后发表回答