Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

It there way to limit the header index not used, If I put all header in .ccls #955

Open
cxwx opened this issue Dec 20, 2023 · 5 comments
Open

Comments

@cxwx
Copy link

cxwx commented Dec 20, 2023


Observed behavior

截屏2023-12-20 22 02 22 it seem the ccls memory increase time by time. and If I don't close the neovim, it will cause huge memory usage. ### Expected behavior

limit the memory usage

Steps to reproduce

System information

  • ccls version (git describe --tags --long): Homebrew ccls version
  • clang version: clang version 16.0.6
  • OS: macos 14.2
  • Editor: neovim
  • Language client (and version): ale(dense-analysis/ale) |nvim-lspconfig (clangd)
@BewareMyPower
Copy link

I observed similar errors recently. I met "Your system has run out of application memory?" errors very frequently after upgrading the ccls binary recently.

@BewareMyPower
Copy link

As a workaround, I switched to https://github.com/clangd/coc-clangd. You only need to modify .ccls to compile_flags.txt, or just reuse the compile_commands.json from CMake.

@ingjieye
Copy link

Try this? https://github.com/MaskRay/ccls/wiki/Customization#cacheretaininmemory

@cxwx
Copy link
Author

cxwx commented Mar 28, 2024

Try this? https://github.com/MaskRay/ccls/wiki/Customization#cacheretaininmemory

thanks the memory reduce by this method

@cxwx cxwx closed this as completed Mar 28, 2024
@cxwx
Copy link
Author

cxwx commented Apr 18, 2024

when using global ~/.ccls, the memory used is still very large, Is there a way to limit the ccls for global usage

@cxwx cxwx reopened this Apr 18, 2024
@cxwx cxwx changed the title cause too much memory It there way to limit the header index not used, If I put all header in .ccls Jan 1, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants