Allow users to tune clangd resources in VSCode launch script

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • DevProd Build
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      SERVER-115974 gave clangd a 4GB memory limit in an attempt to prevent OOMs from clangd. I've found that this maximum is quite limiting as it causes clangd to use a large amount of swap, making it extremely slow. When I edit clang_vscode.sh locally to give clangd more memory (I tried 16GB for MemoryHigh and 24GB for MemoryMax), clangd immediately becomes much faster and useable again. The result however is a persistent change that git tracks that I don't want to commit (presumably not everyone wants this setting enabled).

      This ticket is an ask for the ability to configure these memory limits in a local config file that is ignored by git.

            Assignee:
            Zack Winter
            Reporter:
            Ben Shteinfeld
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: