Open glemin5011 opened 2 months ago
I'm experiencing the same thing for the last few days. Here are my system info:
VS Code version: Code 1.92.2 (Universal) (fee1edb8d6d72a0ddff41e5f71a671c23ed924b9, 2024-08-14T17:29:30.058Z) OS version: Darwin arm64 23.5.0 Modes:
Also, it might be worth noting that the same problem occurs in other IDEs - I have the exact same problem with Zed, which also consumes around 4GB memory - I know issues with Zed are not your concern, but I am mentioning it because it made me wonder whether the underlying problem is in the LSP itself, rather than in the IDE - afaik Zed uses vtsls, which if I understand correctly is a wrapper around VSCode's implementation of the LSP
they discuss the issue here if interested
I'm still having this issue. I've tried to move to Cursor and I seeing the exact same behaviour. The only way to keep working is to disabled TS/JS features.
@glemin5011 did you find a solution? maybe is something related to a broken cache or something like that, but anything I've tried has worked :(
Edit: sorry, I've forgot that the OP already said that this was happening without extensions
For extra info: this is still happening even with all the extensions disabled:
Recently, I have been having major performance issues with VS Code running a small-size Typescript project.
Please share an example project which causes this so we can take a look
I was struggling to find a repo that i could share with you which causes the same behavior, but I took this screenshot when i cloned freeCodeCamp's repo just now, which is roughly the same size as my project in terms of Typescript LOC (~60,000 in Typescript and roughly 2GB size repo incl. dependencies installed)
This is the same version of code insiders with no plugins running - fwiw I don't really experience CPU problems like @coluccini , for me the issue is memory
I have changed the "Tsserver: Max TS Server Memory" setting to 4GB (from 3) and I'm now not seeing the CPU issue, even when the plugin is still using +3GB of RAM. So I guess the issue might be triggered when the plugin reaches the setting limit
A little bit of more context: my projects has "only" 18K files. So, using 3.5GB of RAM seems way too excessive
Update: I just installed the last update and everything seems to be working fine now. The max RAM use by code helper plugin is 700MB, CPU is low and most features that was not working smoothly are now working just fine.
unfortunately, the update did not change anything for me, which I think is consistent with the fact that I saw this behavior with a fresh Code Insiders installation - anyways, it's possible that my project is just too big for the LSP to work under this level of RAM consumption, i was just surprised by it, because I did not consider it to be a large project
The issue is back š And today a colleague started having the same issue... And I'm totally sure that our project is not too big (we are just 4 people and we just have an API and a React App).
It's getting really frustrating as most of the time "go to definition" does not work and finding where everything is is too time consuming.
Type: Performance Issue
Recently, I have been having major performance issues with VS Code running a small-size Typescript project. This is probably also related to issue #225421.
I noticed that the Code - Helper (Plugin) process was consuming a lot of memory and I assumed this was due to extensions. I did the following:
Is this an expected level of performance? I did not have these issues a couple of
monthsweeks ago (I am unable to pinpoint when exactly this became a noticable issue).Maybe this is unrelated, but in about the same time, I started having major issues with running TS on my other machine running WSL2 - i get the
Initalizing JS/TS language features
crashes as referenced in #225651, #225596, #225409, which also leads to a spike in memory consumption.Screenshot below is from when I opened one TS file from my project after booting my device (running a fresh Code Insiders install with no extensions)
VS Code version: Code - Insiders 1.93.0-insider (Universal) (5b066ec2e30cf46bc636d6d27af5404713f6b0f8, 2024-08-29T17:06:24.451Z) OS version: Darwin arm64 23.6.0 Modes:
System Info
|Item|Value| |---|---| |CPUs|Apple M2 (8 x 2400)| |GPU Status|2d_canvas: enabledcanvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off| |Load (avg)|3, 2, 2| |Memory (System)|8.00GB (0.02GB free)| |Process Argv|. --crash-reporter-id eec284df-f61a-4fc0-8036-0496e4bfc7ec| |Screen Reader|no| |VM|0%|
Process Info
``` CPU % Mem MB PID Process 15 115 70663 code-insiders main 8 49 70666 gpu-process 0 25 70667 utility-network-service 18 57 70669 shared-process 0 0 72551 /bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command= 0 33 70712 ptyHost 0 0 71478 /bin/zsh -il 44 287 71444 window [2] (ibm-create-service-id-worker.ts ā backend) 1 33 71445 extensionHost [2] 0 25 71871 /Applications/Visual Studio Code - Insiders.app/Contents/Frameworks/Code - Insiders Helper (Plugin).app/Contents/MacOS/Code - Insiders Helper (Plugin) /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/json-language-features/server/dist/node/jsonServerMain --node-ipc --clientProcessId=71445 0 33 72378 electron-nodejs (tsserver.js ) 97 385 72379 electron-nodejs (tsserver.js ) 0 25 72381 electron-nodejs (typingsInstaller.js typesMap.js ) 240 1163 72380 electron-nodejs (tsserver.js ) 0 33 71477 fileWatcher [2] ```Workspace Info
``` | Window (ibm-create-service-id-worker.ts ā backend) | Folder (backend): 374 files | File types: js(81) zip(80) ts(72) json(17) env(1) example(1) cjs(1) | gitignore(1) npmignore(1) md(1) | Conf files: settings.json(1) package.json(1) tsconfig.json(1); ```Extensions: none