clangd icon indicating copy to clipboard operation
clangd copied to clipboard

Clangd being questionable with memory

Open MahdiGMK opened this issue 2 years ago • 1 comments

Im using clangd on a pretty small code as LSP inside nvim and I see it stays at around 500MB of memory idle and when i query something it just allocates 1GB of additional memory does some calculations using 50% of my cpu and responding to the query after 5 seconds and then it just deallocates the additional memory and goes back to 500MB. I think this weird memory usage is the reason of this huge delay. Is there any way to allocate more memory and cache more stuff on the ram itself?

MahdiGMK avatar Jan 01 '24 22:01 MahdiGMK

If you're still experiencing this, it would help to provide:

  • Clangd logs to show what queries / operations you're performing (and indicate one example of a slow query).
  • (If possible) an example project that demonstrates the issue.

HighCommander4 avatar May 29 '25 22:05 HighCommander4