microsoft / vscode-dotnettools

This is a feedback repository to capture issues logged for the C# Dev Kit and related extensions from Visual Studio Code
Other
216 stars 9 forks source link

[BUG] Microsoft.VisualStudio.Code.ServiceHost loads the CPU constantly by 25% #731

Closed timamus closed 1 month ago

timamus commented 9 months ago

Describe the Issue

Microsoft.VisualStudio.Code.ServiceHost loads the CPU constantly by 25%. This happens in all versions of the C# devkit extension above 1.0 when the .net project is open in VS Code.

tempsnip

Steps To Reproduce

No response

Expected Behavior

No response

Environment Information

kvenkatrajan commented 9 months ago

We would need to identify if Roslyn or project system processes.

timamus commented 9 months ago

We would need to identify if Roslyn or project system processes.

How to identify it?

dibarbet commented 9 months ago

Microsoft.VisualStudio.Code.ServiceHost is the servicehub host process I believe. Roslyn does not use service hub, and it doesn't appear to be the project system or CPS processes either. Moving over to the extensionmanagement area - someone on the service hub side needs to take a look here.

AArnott commented 2 months ago

I can't repro the problem given the instructions in the issue description. @timamus Are you still seeing this? If so, can you collect an ETL trace while the process is spinning and share the .zip (that includes symbols) with us? My favorite tool to collect such a trace is PerfView.

MihaPro-CarX commented 1 month ago

I have a problem with Microsoft.VisualStudio.Code.ServiceHost: изображение I have a large Unity project with 301 projects in Solution. There is a very large memory consumption by the process: Microsoft.VisualStudio.Code.ServiceHost. C# v2.39.28 (pre-release) C# Dev Kit v1.9.8 (pre-release)

AArnott commented 1 month ago

@MihaPro-CarX Wow. 26GB! I can't say whether that's a bug for 301 projects, but we can certainly investigate. But can you open a separate issue as that seems distinct from this issue.

I'm going to close this due to lack of a repro and no response from the OP.

MihaPro-CarX commented 1 month ago

@AArnott I opened another issue: https://github.com/microsoft/vscode-dotnettools/issues/1295