x/tools/gopls: high memory use and sluggishness #45363
Labels
gopls/performance
Issues related to gopls performance (CPU, memory, etc).
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Start up gopls in our monorepo in module aware mode by opening vscode or Vim w/ vim-go
What did you expect to see?
Similar memory use and performance as when using GOPATH mode.
What did you see instead?
Very high memory use and sluggishness. Using module aware mode, gopls very quickly starts using 10GB of memory or more. Other users internally report even higher memory use.
Performance is generally very sluggish. Completion requests, for example, have a noticable delay before a response is delivered.
In GOPATH mode, memory sits around 300MB and gopls is very responsive.
The text was updated successfully, but these errors were encountered: