Skip to content

VS Code freezes debugging program with many threads #44248

@rsalvador

Description

@rsalvador

Issue Type

Performance Issue

Description

When using VS Code to debug a java program with many threads (~500) the UI becomes generally
unresponsive and sometimes freezes for about 10-20 seconds when hitting/continuing from a breakpoint.

The problem seems to be that VS Code tries to refresh the "Call Stack" very often
(and each refresh takes 100-200ms with that many threads)

VS Code Info

VS Code version: Code 1.20.1 (f88bbf9, 2018-02-13T15:23:28.607Z)
OS version: Darwin x64 17.4.0

System Info
Item Value
CPUs Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHz (8 x 2800)
Load (avg) 3, 4, 4
Memory (System) 16.00GB (6.91GB free)
Process Argv /Applications/Visual Studio Code.app/Contents/MacOS/Electron .
Screen Reader no
VM 0%
Workspace Info
|  Window (HeaderController.java — core)
|    Folder (core): more than 20000 files
|      File types: java(12565) xml(1664) js(1072) json(925) class(430)
|                  txt(342) DS_Store(318) png(301) apex(242)
|                  html(234)
|      Conf files: launch.json(1) settings.json(1) tasks.json(1)
|      Launch Configs: java;
Extensions (10)
Extension Author (truncated) Version
vscode-eslint dba 1.4.6
tslint eg2 1.0.28
prettier-vscode esb 1.1.3
python ms- 2018.1.0
debugger-for-chrome msj 4.1.0
java red 0.19.0
lwc-vscode sal 0.11.2
perforce sle 3.1.0
rewrap stk 1.7.1
vscode-java-debug vsc 0.6.0

(1 theme extensions excluded)

Reproduces only with extensions

VS Code example stack trace when freezing:
stack-trace

window.cpuprofile.txt

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugdebugDebug viewlet, configurations, breakpoints, adapter issuesverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions