[Solved] CLion can't increase memory

Completed

Hi,

From time to time CLion complains about Low memory. When I open Memory Settings Dialog 

I've modified Xmx through windows and directly in user vmoptions file. Stil - when low memory warning pops out, it says like free 100 of 499).

Increasing Xms above 512M in user vmoptions file leads to CLion not starting at all.

 

Details (fragment:of idea.log)
IDE: CLion (build #CL-182.4892.24, 16 Oct 2018 17:03)
OS: Windows 10 (10.0, amd64)
JRE: 1.8.0_152-release-1248-b19 (JetBrains s.r.o)
JVM: 25.152-b19 (OpenJDK 64-Bit Server VM)
JVM Args: -Xss2m -Xms512m -Xmx5g -XX:NewSize=128m -XX:MaxNewSize=128m -XX:ReservedCodeCacheSize=240m -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 -ea -Dsun.io.useCanonCaches=false -Djava.net.preferIPv4Stack=true -Djdk.http.auth.tunneling.disabledSchemes="" -XX:+HeapDumpOnOutOfMemoryError -XX:-OmitStackTraceInFastThrow -XX:NewRatio=1 -Djb.vmOptionsFile=C:\Users\sebastian_lenovo\.CLion2018.2\config\clion64.exe.vmoptions -Didea.platform.prefix=CLion -Dide.native.launcher=true -Didea.paths.selector=CLion2018.2 -XX:ErrorFile=C:\Users\sebastian_lenovo\java_error_in_clion_%p.log -XX:HeapDumpPath=C:\Users\sebastian_lenovo\java_error_in_clion.hprof -Xmx512M

clion_out_of_memory.png
clion_memory_issues_clion64.exe.vmoptions

0
3 comments

Hi, Sebastian!

Please go to File | Settings | Appearance & Behavior | Appearance and enable the "Show memory indicator" option. The indicator will appear in the bottom right corner of the CLion window. What do you see in it? Thanks in advance!

Please also insert the clion_out_of_memory.png as an image.

0

Image added.

 

PS: Case solved. I had _JAVA_OPTIONS in environmental variables set with -Xmx=512m. It was added at the end of JVM Args (visible in idea.log).
After I removed this variable - CLion allocated proper amount of memory.

0

Thanks for letting us know!

0

Please sign in to leave a comment.