Skip to content

Huge memory usage and slow analyzers #71949

Open
@aldrashan

Description

We've got multiple big MVC projects.
For some reason, the build/analyze performance varies a lot between them.
Granted, the one with the biggest issues is also the one with the most files in general.

The ServiceHub.RoslynCodeAnalysisService.exe process is currently taking up 13+GB of memory for that biggest project.
It's come to the point where the ctrl + space shortcut is straight up not working anymore.
Visual Studio (Enterprise 2022 Version 17.8.6) also stops colouring things, as if it doesn't recognize them, although the popover when hovering over it does work.
Same issue when you press ctrl + ; to suggest imports. It just loads and loads for ages and then doesn't show any results.

Schermafbeelding 2024-02-03 201929
Schermafbeelding 2024-02-03 201843

Please suggest things I should check and details I need to add here to help dig into the problem.

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions