0

I have a Dell Inspiron 15 laptop with a Core i5 7th Generation along with 4GB DDR4 2400MHz. The OS is Windows 10 Home Single x64 (Build 15063). Most of the tasks being performed on that laptop are coding with Visual Studio Code, running MySQL server and some Java programming. It was working perfectly until the day before yesterday.

Starting from yesterday, the Visual Studio Code program has started consuming all my RAM and freezes my laptop. Both HDD and RAM status in Task Manager went up to 100%. I always have to hard reset the laptop.

The PC was operating normally until I opened the Visual Studio Code. I found out the Visual Studio is the cause of the problem. I uninstalled and reinstalled the program but that didn't work for me. Also updating to the latest version didn't work. I was just doing coding just like every day and didn't install any plugins.

Edit: I got the problem fixed. But I don't know how the solution and this problem relates with.

After upgrading to Fall Creators Update (1709), I could see all the details and sub tasks the VS Code is performing in the task manager. I found out more than 2000 Git for Windows processes were running under Visual Studio Code and consuming all my RAM. Those Git for Windows processes were increasing infinitely. Each process uses 2MB RAM.

So, I uninstalled the Git (2.6.0) and reinstall with the latest version (2.15.2). That fixed my problem but I am not really satisfied with that.

It would be very nice and appreciated if someone explains me how the Git gives trouble to the Visual Studio Code.

dandan78
  • 171

3 Answers3

0

I had the same problem and it turned out it was Git for Windows that was causing it. If you locate Vscode on your task manager and view its subprocesses, you may see several rows of git.exe, each consuming about 300MB of RAM.

Uninstalling Git for windows (version 2.16 at the time) and installing the latest version solved the memory-hogging issue for me.

Nick
  • 171
-1

In windows, you can set priorities for each application for how much Memory and possibly CPU they can use. If you set the application that is taking to much ram to a low priority, it will not use much RAM. There are 5 options that distinguish the level of priority! For decreasing priority, there is Below Normal and Low.

A simple tutorial can be found here how to set priorities. https://youtu.be/niNc4Xr46xk?t=32

In Task Manager you can also monitor how much Memory/RAM apps are using!

vanilla
  • 27
  • 6
-1

If you've got resharper installed that can use a bit. If so try updating it.