Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Clojure-lsp causing a UI freeze, OOM errors, or just using a large amount of memory (2+ GB) #990

Closed
bpringe opened this issue Jan 28, 2021 · 6 comments
Labels

Comments

@bpringe
Copy link
Member

bpringe commented Jan 28, 2021

Things like this have been reported by one or two users. If you experience this, please let us know the details here and add the specs of your system.

  • OS
  • RAM
  • VS Code version
  • Calva version
@bpringe bpringe added the lsp label Jan 28, 2021
@Nillkki
Copy link

Nillkki commented Feb 3, 2021

Hi!
I'm having this issue! UI keeps freezing. I believe this is due to clojure-lsp using 2GB of memory. My memory usage is generally high due to other programs but 2GB seems high. I'm only learning Clojure. Code I'm experiencing this with can be found: https://github.com/iloveponies/structured-data

The issue goes away for awhile if I restart VS Code!

  • OS: macOS 11.1(Darwin x64 20.2.0)
  • RAM: 16GB
  • VS Code version: 1.52.1
  • Calva version: 2.0.157

@bpringe
Copy link
Member Author

bpringe commented Feb 3, 2021

Thanks so much for reporting and providing a repo! Does this happen with other projects too or just that one? If it does happen with others, is it consistent per project?

@bpringe
Copy link
Member Author

bpringe commented Feb 3, 2021

I want to link this related issue: clojure-lsp/clojure-lsp#229. Though, the UI freeze thing may be more of a CPU issue than a memory issue.

@Nillkki Have you checked your system resources when the UI freezes? Is it just the VS Code UI that freezes or your whole OS UI? If it's not the whole OS UI, would you mind checking your CPU and memory usage next time a freeze happens and reporting that here?

@bpringe
Copy link
Member Author

bpringe commented Feb 3, 2021

I opened the linked project and monitored my system resources. CPU usage goes pretty high for a bit but no freezing occurs. I also compared the CPU usage with another project at startup (also having removed the clj-kondo and lsp files). The linked project usage is at the top and the other is at the bottom.

image

image

@bpringe
Copy link
Member Author

bpringe commented Feb 5, 2021

This issue may be resolved or alleviated by #1017. We can check back after that's closed.

@bpringe
Copy link
Member Author

bpringe commented Mar 26, 2021

Closing this since #1078 should help with this, and we haven't gotten any new reports lately anyway. We can reopen later if it seems appropriate.

@bpringe bpringe closed this as completed Mar 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants