microsoft / vscode-remote-release

Visual Studio Code Remote Development: Open any folder in WSL, in a Docker container, or on a remote machine using SSH and take advantage of VS Code's full feature set.
https://aka.ms/vscode-remote
Other
3.62k stars 277 forks source link

vscode-ripgrep caused a memory issue #2960

Closed sd1084741 closed 3 years ago

sd1084741 commented 4 years ago

Issue Type: Bug

When vscode uses ssh to connect to centos7 server remotely, vscode-ripgrep takes up very large memory, and the symptom is like a memory leak

VS Code version: Code 1.45.0 (d69a79b73808559a91206d73d7717ff5f798f23c, 2020-05-07T16:18:48.860Z) OS version: Windows_NT x64 10.0.18363 Remote OS version: Linux x64 3.10.0-862.el7.x86_64

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz (12 x 2592)| |GPU Status|2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled| |Load (avg)|undefined| |Memory (System)|31.85GB (18.57GB free)| |Process Argv|| |Screen Reader|no| |VM|0%| |Item|Value| |---|---| |Remote|SSH: prd_kettle| |OS|Linux x64 3.10.0-862.el7.x86_64| |CPUs|Intel(R) Xeon(R) Gold 6140 CPU @ 2.30GHz (4 x 2294)| |Memory (System)|7.80GB (4.27GB free)| |VM|100%|
Extensions (28) Extension|Author (truncated)|Version ---|---|--- better-comments|aar|2.0.5 bracket-pair-colorizer-2|Coe|0.0.29 vuerd-vscode|din|0.5.2 vscode-mysql|for|0.4.0 vscode-pull-request-github|Git|0.16.0 mdmath|goe|2.4.0 gc-excelviewer|Gra|2.1.34 path-autocomplete|ion|1.13.6 json2csv|kha|0.0.1 markdown-shortcuts|mdi|0.12.0 rainbow-csv|mec|1.7.0 mssql|ms-|1.9.0 anaconda-extension-pack|ms-|1.0.1 python|ms-|2020.4.76186 remote-ssh|ms-|0.51.0 remote-ssh-edit|ms-|0.51.0 vscode-sanddance|msr|1.2.12 oracledevtools|Ora|19.3.2 vscode-yaml|red|0.7.2 vscode-sql-beautify|sen|0.0.4 code-settings-sync|Sha|3.4.3 markdown-preview-enhanced|shd|0.5.3 tabnine-vscode|Tab|2.8.2 math-snippets|tho|0.1.1 pdf|tom|0.6.0 vscodeintellicode|Vis|1.2.7 vscode-icons|vsc|10.1.1 better-align|wwm|1.1.6 (1 theme extensions excluded)
roblourens commented 4 years ago

This will happen when there is a search going on. Is it causing issues?

sd1084741 commented 4 years ago

This will happen when there is a search going on. Is it causing issues?

I didn't active any search. Whenever I connected to a remote server using ssh and use the 'top' command, I would find a process with the value 'rg' in the command column, and then its corresponding memory usage increases slowly until all memory is consumed. The 'rg' process would appear automatically again after a long time (maybe one night), even I killed it immediately.

roblourens commented 3 years ago

Likely from an extension, you can look at the args that rg was started with to figure out which one.