Skip to content

5MB/minute memory leak when keeping the process explorer open #156777

@officiallymarky

Description

@officiallymarky

Issue Type: Bug

I have 45 extensions installed and applications start to crash after leaving VS Code running for 2-3 days, if I have more than one instance it is sooner.

I assumed it was an extension as I have 45 installed. My initial reaction was to disable GitHub CoPilot thinking this might be the problem, and no change in memory loss. I am using VS Code Process Explorer to monitor memory usage.

So my next step was to disable all extensions and enable them one by one to see if I can catch the one giving me a problem. While waiting a few seconds for a baseline with no extensions, I noticed I was still losing about 5MB/minute or just over 300Mb/hour.

I am using latest version on Windows 10 Pro x64 with latest system updates. I have tried a fresh reboot and running without extensions on a fresh restart and I am continously losing ram at the same rate. With all extensions enabled, I am losing roughly the same amount of ram per minute.

I've been having this issue for a few months and doubled my system ram to 64G to give me more buffer until things start crashing as at the time I haven't narrowed down the problem.

UPDATE:
I installed the insider build and seeing similar results, in fact memory loss is closer to 5.9MB/minute. This is without extensions and with default settings file. Just sitting idle without a project loaded.

VS Code version: Code 1.69.2 (3b889b0, 2022-07-18T16:12:52.460Z)
OS version: Windows_NT x64 10.0.19044
Restricted Mode: No

System Info
Item Value
CPUs AMD Ryzen 9 5950X 16-Core Processor (32 x 3400)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
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_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 63.92GB (43.29GB free)
Process Argv --crash-reporter-id 5e70ba6f-248a-4f0a-8205-dd6e93c2c8dc
Screen Reader no
VM 0%
Extensions (43)
Extension Author (truncated) Version
markdown-mermaid bie 1.14.2
vscode-tailwindcss bra 0.8.6
npm-intellisense chr 1.4.2
postcss css 1.0.9
transformer dak 1.12.1
vscode-eslint dba 2.2.6
githistory don 0.6.19
vscode-babel-coloring dza 0.0.4
gitlens eam 12.1.2
vscode-html-css ecm 1.13.1
EditorConfig Edi 0.16.4
vscode-npm-script eg2 0.3.28
prettier-vscode esb 9.5.0
text-transform flo 0.1.0
auto-rename-tag for 0.1.10
copilot Git 1.36.6340
todo-tree Gru 0.0.215
dotenv mik 1.0.1
inline-fold moa 0.1.6
python ms- 2022.10.1
vscode-pylance ms- 2022.7.40
jupyter ms- 2022.6.1201981810
jupyter-keymap ms- 1.0.0
jupyter-renderers ms- 1.0.9
remote-ssh ms- 0.84.0
remote-ssh-edit ms- 0.80.0
remote-wsl ms- 0.66.3
color-highlight nau 2.5.0
indent-rainbow ode 8.3.1
hivecoin-statusbar Off 0.0.5
quicktype qui 12.0.46
vscode-thunder-client ran 1.16.7
ansible red 0.11.10
vscode-yaml red 1.9.1
wordcount rid 0.1.33
vue-vscode-snippets sdr 3.1.1
autoimport ste 1.5.4
es6-string-html Tob 2.12.0
highlight-matching-tag vin 0.10.1
vscode-icons vsc 11.13.0
volar Vue 0.39.3
vue Wsc 1.0.26
markdown-all-in-one yzh 3.4.3

(2 theme extensions excluded)

Metadata

Metadata

Labels

bugIssue identified by VS Code Team member as probable bugconfirmedIssue has been confirmed by VS Code Team memberfreeze-slow-crash-leakVS Code crashing, performance, freeze and memory leak issuesinsiders-releasedPatch has been released in VS Code InsidersverifiedVerification succeededwindowsVS Code on Windows issues

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions