'Visual studio 2022 highly used memory

I working with Visual Studio2022 and blazor .net 6 when i worked after 1 hour visual studio highly used memory and crashed on my pc (windows server 2019).

Task manager with visual studio 2022



Solution 1:[1]

enter image description here

A coworker of mine found the memory leak.

If you disable these two checkboxes your problem is fixed.

Tools -> options -> Text editor -> Advanced

Disable the following:

  • Enable pull diagnostics (experimental, requires restart)

  • Enable razor pull diagnostics (experimental, requires restart)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Mo D Genesis