For context, I was doing Mojo GPU puzzles on VSCode Ubuntu. After some time, the VSCode froze and eventually killed. This problem kept happening. I turned on system monitoring and noticed the memory usage of mojo-lsp-server reached 14GB when the VSCode freezing happened (I have 16GB RAM).
mojo version: Mojo 0.25.7.0.dev2025092205
mojo-lsp-server version: I run mojo-lsp-server --version and it returned LLVM version 22.0.0git
Hi @m4nhb4nhq - this is unfortunately a known issues with the LSP
Luckily, internally we are working on a fix for this which should (fingers crossed) fix some of the LSP issues people are seeing.
Feel free to file an issue on the GitHub repo if you want to help track this problem!
As we reported on the issue, this memory leak should be fixed in the latest nightly that just went out this afternoon. I’m not seeing it on my systems any more, so hopefully that should be the case in general.