language-tools icon indicating copy to clipboard operation
language-tools copied to clipboard

The memory usage is too high; the computer’s memory is struggling to keep up.

Open coder-virjay opened this issue 1 year ago • 3 comments
trafficstars

Vue - Official extension or vue-tsc version

v2.0.28

VSCode version

1.92.0

Vue version

3.4.33

TypeScript version

5.4.0

System Info

System:
    OS: macOS 14.5
    CPU: (8) arm64 Apple M1
    Memory: 97.19 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.14.0 - ~/.nvm/versions/node/v20.14.0/bin/node
    npm: 10.7.0 - ~/.nvm/versions/node/v20.14.0/bin/npm
    bun: 1.1.12 - ~/.bun/bin/bun
  Browsers:
    Brave Browser: 124.1.65.130
    Chrome: 127.0.6533.89
    Chrome Canary: 129.0.6639.0
    Edge: 127.0.2651.74
    Safari: 17.5

Steps to reproduce

Please watch the video.

What is expected?

Reduce memory usage.

What is actually happening?

The memory usage is extremely high.

Link to minimal reproduction

No response

Any additional comments?

https://github.com/user-attachments/assets/ecaaba9c-faee-45ac-bf5a-ee9314b63f35

coder-virjay avatar Aug 06 '24 06:08 coder-virjay

Please provide more information about your project and your project config. Generally, large Vue/TS projects require a lot of memory by default as type-checking is quite resource intensive.

davidmatter avatar Aug 06 '24 06:08 davidmatter

Please provide more information about your project and your project config. Generally, large Vue/TS projects require a lot of memory by default as type-checking is quite resource intensive.

I’ve found that as the number of Vue and TS files increases, the memory usage also rises. My project has over six hundred Vue and TS files. The file below is the project’s dependencies. I tried deleting some Vue and TS files, and the memory usage decreased accordingly. When I completely deleted the src folder, the memory usage was very low.

package.json

coder-virjay avatar Aug 07 '24 01:08 coder-virjay

I have the same problem. The environment is consistent. It's a small project.

bryqiu avatar Aug 29 '24 01:08 bryqiu

Yes resource requirements are horrific, especially when using remote on Remote - SSH in vscode. In the end I've had to remove the extension just on the server because the extension would either crash or take my server down. Is there any way to run this locally even when editing over SSH?

casesolved-co-uk avatar May 29 '25 21:05 casesolved-co-uk

There are many factors that affect TS's memory usage, and without reproduction, we will not be able to investigate the problem.

johnsoncodehk avatar Jul 27 '25 12:07 johnsoncodehk