hashicorp / terraform-ls

Terraform Language Server
Mozilla Public License 2.0
969 stars 132 forks source link

Huge memory usage #1730

Open cveld opened 3 weeks ago

cveld commented 3 weeks ago

Language Server Version

not sure

Terraform Version

terraform v1.8.1 on windows_amd64

Client Version

vscode 1.90.0 terraform extension 2.30.2

Terraform Configuration

I think it is a general problem

Steps to Reproduce

Just open vscode and wait for the memory consumption to kick in during the day.

Expected Behavior

Little memory usage

Actual Behavior

Huge memory usage

image

Gist

No response

Workarounds

I occasionally kill the terraform-ls.exe processes and start over.

References

No response

Help Wanted

Community Note

dbanck commented 2 weeks ago

We've just released v2.31.2024061114, which ships with a re-architected language server for improved performance and resource usage (terraform-ls#1667). The language server will now start up much faster and use fewer resources, especially on larger workspaces.

In VS Code, you can opt in to the extension preview: CleanShot 2024-06-17 at 12 18 50@2x

If you have the time, please give it a try and let us know how it works for you. We have tested this with workspaces of different sizes, but still expect some bugs due to the wide variety of configurations. Your feedback is greatly appreciated.