Visual studio 2022 highly used memory

Viewed 10289

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

4 Answers

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)

I fixed 98% Ram --> 50% Ram when Set the options to Only specified modules.

To specify symbol loading, choose Tools > Options > Debugging > Symbols. Or Task Manager -> ServiceHub.Roslyn... -> Right Mouse -> End Task

Symbols Optionsenter image description here

Visual Studio notifies you in a yellow bar when automatic document restore is causing a solution to load significantly slower. You can disable automatic file reopening by following these steps:

Select Tools > Options to open the Options dialog box.

On the Projects and Solution > General page, deselect Reopen documents on solution load.

If you disable automatic file restore, a quick way to navigate to files you want to open is by using one of the Go To commands:

For the general Go To functionality, select Edit > Go To > Go To All, or press Ctrl+T.

Jump to the last edit location in a solution using Edit > Go To > Go To Last Edit Location, or by pressing Ctrl+Shift+Backspace.

Use Go To Recent File to see a list of recently visited files in a solution. Select Edit > Go To > Go To Recent File, or press Ctrl+1, Ctrl+R.

This issue fixed in link below

Related