microsoft / microsoft/vscode-cpptools

When open a cpp file with 300000 lines,cpptools-srv will use huge memories, and make the linux system break

Open
#9,481 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug investigate: repro Language Service performance
Dominant language
TypeScript
Stars
6.2k
Forks
1.7k
Avg merge
14h 46m
Merged PRs (30d)
61

Description

Issue Type: Bug

1.open a cpp file with 300000 lines
2. check the memory usage in linux system, susytem will crash in few minutes

Extension version: 1.11.0
VS Code version: Code 1.68.1 (30d9c6cd9483b2cc586687151bcbcd635f373630, 2022-06-14T12:48:58.283Z)
OS version: Windows_NT x64 10.0.19043
Restricted Mode: No
Remote OS version: Linux x64 5.3.0-51-generic

System Info
Item Value
CPUs Intel(R) Core(TM) i5-10505 CPU @ 3.20GHz (12 x 3192)
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
oop_rasterization: enabled
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) 15.75GB (8.07GB free)
Process Argv --crash-reporter-id 24a3dd1a-a7aa-4c0f-a96b-309f359c3e89
Screen Reader no
VM 0%
Item Value
Remote SSH: 10.50.30.254
OS Linux x64 5.3.0-51-generic
CPUs Intel(R) Core(TM) i5-10505 CPU @ 3.20GHz (12 x 4355)
Memory (System) 15.39GB (3.37GB free)
VM 0%
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256860
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
vsc1dst:30438360
pythonvs932:30410667
wslgetstarted:30449410
vscscmwlcmt:30465135
cppdebug:30492333
vsclangdf:30486550
841h4636:30513380

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with a 300,000-line C++ file while monitoring cpptools-srv memory on the reported Linux remote environment. Trace the memory growth from that service; done means opening the file no longer consumes enough memory to crash or destabilize the system.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
devtools, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.