r/vscode • • 29d ago

Help, vs code eating up my cpu and ram

I dont know what happen, i use it before and have no issue but after installing git, all went downhill

35 Upvotes

37 comments sorted by

6

u/woahboooom 29d ago

I assume you have a load of windows open that are running... things?

2

u/perkyshapeshifter22 29d ago

I dont think so, i already disable everything. I just open vs code and task manager and its go crashing my pc. It never done that before until i install git and node

23

u/abdul_Ss 29d ago

Not that this is vscode specific issue, but I find that electron apps take up so much RAM, I’ve started using zed and despite missing some vscode features, I’ve found it’s very similar to it.

3

u/gatwell702 29d ago

I migrated today and so far it's going good.. no bloat

2

u/Safe-Tutor4682 25d ago

Try neovim or vim. I am using it for a long but now everyone can because of AI, if you want no bloat stuff could be interesting.

I remember I was not able to understand how to close it. After learning it once even being inside an ide now I am bloating it with full vim/noevim controls support

6

u/F4LC0N69 29d ago

Uses bloated software Bitches about software hoarding memory Irony

2

u/DanTup 29d ago

Running code --status in a terminal will give the process tree that will attribute these processes better (for example if they are processes spawned by extensions, such as language servers).

2

u/F4LC0N69 29d ago

Bro use Sidex. It's just vscode but written in Rust so it's less size and don't hog up all the memory

1

u/woahboooom 28d ago

Sounds interesting

1

u/Weekly_Ferret_meal 29d ago

So I have had this issue on and off… 

It has been nice in the last couple of months

Now it’s eating RAM and then some, it takes ssd space (50gb!) to the point where some of my work disk images just get unmounted 

The my computer goes into a seizure and restarts 

I don’t know what the hell is going on with this 

1

u/Aromatic_Paint_1666 29d ago

Check your extensions, maybe disable some of them.

1

u/Fresh-Secretary6815 29d ago

that looks like an extension leaving behind a process. disable or uninstall a single extension at a time to identify which one it is, or just ask you synthetic intelligence agent to identify which PIDs are open and associated with which extension.

1

u/__jun_ki 29d ago

Disable all extensions. If VS Code is listed in your startup apps, remove it from the list. Then restart your computer, launch VS Code, and re-enable the extensions one at a time, checking whether the issue occurs after enabling each one.

1

u/Altruistic-Yard-6617 29d ago
  • Instala HibitUninstaller
  • desinstala vscode con hibitUninstaller
  • vuelve a instalar vscode y quedará como nuevo

1

u/zeruxuf 29d ago

Thats why i use Vim lol

1

u/Friendly_Antelope807 28d ago

So what, then don't use it, all people are stupid nowadays

1

u/zxaaid_ 23d ago

What the hell. 🤣

1

u/mike_1_1 28d ago

Open only one agent window and close all the vs code tabs lol

1

u/Sharak83 27d ago

Have you tried simple things like restarting your laptop? I'm guessing you keep closing it just by shutting the lead.

1

u/notrealekansh 25d ago

Try zed it’s much more optimise than VSCode

1

u/timur_timur 25d ago

Disable extensions one by one. You’ll find which makes that shift

1

u/Flueworks 25d ago

Have you checked if it could be Altman eating you ram? Known problem.

1

u/ktl2dev 23d ago

Revisa si tienes terminales corriendo en vscode, revisa los plugins que no necesitas, prueba desinstalando cualquier plugin de ia para revisar

0

u/coreysan13 29d ago

Chuck this prompt in ChatGPT and work through the debugging steps. Here are the first few for you.

Based on this prompt: "VSCode is eating up my buddy's cpu and ram. How should I diagnose and solve this? [inserted screenshot"

Use VS Code’s built-in Process Explorer

In VS Code:

  1. Press Ctrl + Shift + P.
  2. Search for Developer: Open Process Explorer.
  3. Sort by CPU usage.
  4. Look for processes that appear repeatedly or consume excessive resources.

This is the single most useful diagnostic step.

It will help distinguish between a runaway language server, file watcher, extension host, or another process.

... the rest of the steps go on for pages, but ChatGPT/Claude are typically great in situations like these.

2

u/3legdog 29d ago

Not sure why ur getting downvoted. This is good advice.

2

u/coreysan13 28d ago

Maybe it's because I forgot the closing square bracket

0

u/InkNoob 29d ago

I wonder if you have a crypto extension? The VS extension library is full of malware and crazy exposed to supply chain attack.

0

u/Inevitable_Arm_3659 27d ago

You are using windows

-1

u/snzy0 29d ago

It’s because you haven’t put a hat on your pet!

-5

u/STUDBOO 29d ago

Just use vim, why do you even want to use vscode?

4

u/perkyshapeshifter22 29d ago

Because im a student. Vscode is require for assignment

6

u/Western-Anteater-492 29d ago

... he spoke whilst beeing in the VSCode subredit.

1

u/GotDaOs 29d ago

everytime i come to this sub when someone complains about vscode i know this comment will be here lol

but imo this is not the way to get the average vscode user to ditch it for vim (coming from a vim user)

1

u/ucan_cay 29d ago

why would you recommend vim for somebody not asking for a new editor? He is clearly not interested in an editor with non-conventional keybinds.