How to let CLion and especially clangd use all of my 64 GiB RAM?
已回答
I know there is -Xmx but Java itself has so many more options *AND* I've found out in the CLion registry that there are even more options like "clion.clangd.max.memory"
But I don't want to search all options by myself and I don't find documentation for this anywhere. So: which options do I have to change to get CLion and clangd in CLion to use all of my 64 GiB RAM (and all 10 cores of my i9-10900k)
It would be nice if the CLion team could document this somewhere and/or answer me here :-)
kind regards, Kira
请先登录再写评论。
Posting my answer here too, just in case:
Using the
XmxJVM option you can change the maximum heap memory size that the JVM can allocate (here is the related guide).Using the
clion.clangd.max.memoryregistry parameter you can change the value of RAM allocated for clangd.The ticket about documentation - https://youtrack.jetbrains.com/issue/CPP-20788.
Thank you!