-
Notifications
You must be signed in to change notification settings - Fork 135
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
High memory usage on macOS (M1) in VS Code (HashiCorp Extension) #1272
Comments
This comment was marked as duplicate.
This comment was marked as duplicate.
We intend to further investigate the performance issues, although the realistic expectation to set here is that amount of memory and CPU will generally always be proportional to the size of the workspace being processed, number of providers used etc., not static. In the interest of transparency (and hope of building some empathy on all sides), I will say that we have not yet invested much effort into optimising for the higher end of workspace sizes. Identifying the different scales (esp. the higher end) and measuring how different parts of the language server behave under those scales is what we plan to do as part of #1056 We will also reach out to you all as part of that work. The only workaround for the moment is to avoid opening large workspaces and rather open individual folders nested within the tree, or at least smaller part of the tree. I appreciate this may not be the answer you're looking for, but I hope the context is helpful. |
We know this has been a frustrating experience and appreciate your understanding while we gathered feedback and examples to diagnose this issue. We've created hashicorp/vscode-terraform#1557 as a central place to see updates on what we are doing to address performance issues in terraform-ls in both the short and long term and pinned it to the repo. We'll be adding more detail there as we implement fixes. As we work on this we'll be recording the content and then closing the individual issues so that everyone has one place to look at instead of searching for individual tickets for updates. |
We've released With the fix, we should be back to terraform-ls If you have the time, please give it a try and let us know how it works for you. Please open a new issue rather than replying here, as this issue has gotten so many replies with different experiences it is hard to process. I am going to close this as we're using hashicorp/vscode-terraform#1557 as a central tracking issue, so subscribe to that to see continued updates. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Server Version
Terraform Version
Client Version
Terraform Configuration Files
We use Terragrunt to manage configuration across our deployments, with two repositories:
Log Output
GPG-encrypted gist: https://gist.github.com/jonbackhaus-mt/bafcffc3a1cbc510934d50bb6017c216
I attempted to profile
terraform-ls
for CPU and memory. The CPU profiler created an empty file; the memory profiler never even created a file.Expected Behavior
Based on other sources, I would expect the memory utilization to be <1 GB.
Actual Behavior
Memory utilization is currently ~10 GB.
Steps to Reproduce
terraform-ls
immediately starts processing in the background and quickly starts consuming resources (high CPU usage; memory footprint grows from ~2 GB to ~10 GB).Continuation of #1100, which has been locked
The text was updated successfully, but these errors were encountered: