Skip to content

VSCode gradually increase RAM using after running some code until computer freezing (~100% RAM usage) #238193

Closed as not planned
@huymtran-biotech

Description

@huymtran-biotech

Type: Performance Issue

The performance started happen after i updating system through apt-get upgrade and update, as well as sudo apt --fix-broken install for fixing error on PC.
After these action, VSCode is behave abnormally, after running a bash script (a loop for renaming files), memory usage are increased until reach approximately 100% and freezing the computer. Restart many time (>5) and using different script still cause the issuem, known that running the same script using terminal behave normally.
Already remove VSCode by sudo snap remove code --purge and clear the .vscode folder then install through downloading debian files from official page, issue still present.

VS Code version: Code 1.96.4 (cd4ee3b, 2025-01-16T00:16:19.038Z)
OS version: Linux x64 6.8.0-51-generic
Modes:

System Info
Item Value
CPUs 12th Gen Intel(R) Core(TM) i5-12400F (12 x 4000)
GPU Status 2d_canvas: enabled
canvas_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: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
webnn: disabled_off
Load (avg) 1, 1, 0
Memory (System) 15.46GB (11.80GB free)
Process Argv --crash-reporter-id 39e17463-b1a7-4143-a417-5e3498f61138
Screen Reader no
VM 0%
DESKTOP_SESSION ubuntu
XDG_CURRENT_DESKTOP Unity
XDG_SESSION_DESKTOP ubuntu
XDG_SESSION_TYPE x11
Process Info
CPU %	Mem MB	   PID	Process
    0	   174	  5969	code main
    0	    32	  5974	   zygote
    0	   127	  6012	     gpu-process
    0	    32	  5975	   zygote
    0	     0	  5977	     zygote
    0	   237	  6044	window [1] (Settings - mapping - Visual Studio Code)
    0	    63	  6017	   utility-network-service
    0	    95	  6129	ptyHost
    0	     0	  6282	     /usr/bin/bash --init-file /usr/share/code/resources/app/out/vs/workbench/contrib/terminal/common/scripts/shellIntegration-bash.sh
    0	   380	  6140	extensionHost [1]
    0	    63	  6427	     /usr/share/code/code /usr/share/code/resources/app/extensions/json-language-features/server/dist/node/jsonServerMain --node-ipc --clientProcessId=6140
    0	   127	  6184	shared-process
    0	     0	  6838	     /bin/sh -c /usr/bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command=
    0	     0	  6839	       /usr/bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command=
    0	    79	  6185	fileWatcher [1]
Workspace Info
|  Window (Settings - mapping - Visual Studio Code)
|    Folder (mapping): 125 files
|      File types: log(48) ht2(8) txt(7) ebwt(6) bt2(6) fa(3) bwt(3) pac(3)
|                  amb(2) ann(2)
|      Conf files:;
Extensions (14)
Extension Author (truncated) Version
copilot Git 1.257.0
copilot-chat Git 0.23.2
debugpy ms- 2024.14.0
python ms- 2024.22.2
vscode-pylance ms- 2024.12.1
jupyter ms- 2024.11.0
jupyter-keymap ms- 1.1.2
jupyter-renderers ms- 1.0.21
vscode-jupyter-cell-tags ms- 0.1.9
vscode-jupyter-slideshow ms- 0.1.6
remote-ssh ms- 0.116.1
remote-ssh-edit ms- 0.87.0
remote-explorer ms- 0.4.3
LiveServer rit 5.7.9
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt551cf:31179979
vscod805:30301674
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
a9j8j154:30646983
962ge761:30959799
pythonnoceb:30805159
pythonmypyd1:30879173
2e7ec940:31000449
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
dvdeprecation:31068756
dwnewjupyter:31046869
nativerepl2:31139839
pythonrstrctxt:31112756
nativeloc1:31192215
cf971741:31144450
iacca1:31171482
notype1:31157159
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530
2j25a237:31215806
6074i472:31201624
dwoutputs:31217127

Metadata

Metadata

Labels

info-neededIssue requires more information from poster

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions