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

Huge memory usage #1730

Open
1 task
cveld opened this issue Jun 11, 2024 · 1 comment
Open
1 task

Huge memory usage #1730

cveld opened this issue Jun 11, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@cveld
Copy link

cveld commented Jun 11, 2024

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

  • I'm interested in contributing a fix myself

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment
@cveld cveld added the bug Something isn't working label Jun 11, 2024
@dbanck
Copy link
Member

dbanck commented Jun 17, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants