clangd uses a lot of Memory (Up to 2.5Gig on my System). On my 8GIG System I frequently run into OOM situations.
Currently the only solution I have found is to kill clangd once it uses a lot of memory.
clangd has some commandline options that look like they may reduce memory usage. But I have not found a way how to configure them in CLion.
CLion doesn't like limiting its memory via ulimit, but maybe it could be possible to limit memory only for the clangd processes?