x/tools/gopls: high memory consumption #47855
Comments
In general FWIW, glancing at the attached zip, |
@heschi I've added a new archive. Please take a look at it. |
No. I don't see any signs of a memory leak. If you want, you can try setting https://github.com/golang/tools/blob/master/gopls/doc/settings.md#memorymode-enum. Use it at your own risk. |
So this is normal behavior? |
I'd say the high memory usage is expected currently - Goland and gopls take different approaches. Gopls dev team is currently working on improvement in this area. The |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes. I have the latest versions of gopls and go.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Opened cockroachDB repository in vim(same thing with neovim) with vim-go plugin and gopls enabled.
I've removed everything but vim-go and gopls from the .vimrc and disabled all other plugins. But the result is the same.
What did you expect to see?
Normal memory consumption. For example, Jetbrains Goland uses ~2GB when this project is open
What did you see instead?
gopls consumes about 9GB of memory, sometimes more than 14GB.
gopls.30806-8GiB-withnames.zip
gopls.3081-14GiB-withnames.zip
The text was updated successfully, but these errors were encountered: