Clion Building Symbols takes forever
I am using MacOS. Here are my VM options.
-Xss16m
-Xms8g
-Xmx8g
-XX:NewSize=1g
-XX:MaxNewSize=1g
-XX:ReservedCodeCacheSize=1g
-XX:+UseCompressedOops
-Dfile.encoding=UTF-8
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-Xverify:none
-XX:ErrorFile=$USER_HOME/java_error_in_clion_%p.log
-XX:HeapDumpPath=$USER_HOME/java_error_in_clion.hprof
-Xbootclasspath/a:../lib/boot.jar
My project is not too huge, maybe 100K lines of code. Indexing takes
< 1 min, but building symbols takes forever. It does not finish at all
even if I wait for hours. I have "show memory" enabled and I see that
it is taking around 3-4 GB memory (out of the max 8GB). I am using
version 2017.3 which is the latest.
请先登录再写评论。
Hi!
Sorry for the inconvenience! Could you please capture a CPU snapshot so we can take a look at what is going on? Please send it to clion-support at jetbrains.com.
Thanks for the response. From the include_directories statement, I deleted the path for boost.
With this the problem has been resolved. I read somewhere that there is some known performance
issue if we include boost. Couple of questions -
- Should I add the boost path, perform reindexing and provide CPU snapshot, or are you guys aware of what's going on w.r.t boost ?
- Is the performance issue w.r.t boost an issue with CLion IDE which can be fixed or is it due to the way boost is structured and is unsolvable ?
Hi!
Sorry for the delay. The issue is solvable but requires additional effort. It will be fixed in the future, but, unfortunately, we can't give the exact estimation for now.
Run into the same problem on a recent trial version. Do you know how to fix it? Thanks!