Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Visual Studio Page Inspector cause High CPU issues?

I'm working on a asp.Net MVC 4 application that's on top of a Domain Model Architecture.

Everything is fine a part that since a couple of days (upgraded many common packages) when I start the debugging session I can see the CPU getting higher and higher without any (apparent) reason: the application in the browser is still perfectly responsive.

Exactly the same source code, if configured as "Release", works perfectly and I don't experience any CPU raise.

I tested the same code on two more machines (Windows Server 2012 R2 and Windows 7) and everything works fine (no matters if Debug or Release).

I ended up creating many memory dumps on my machine (Win 8.1) and this is briefly what I found spending a couple of days on testing and monitoring:

http://screencast.com/t/hJa1V1V5ej

So even if I was not running the Page Inspector within Visual Studio, it seems that for some reason Page Inspector was performing some operation in the background...

I'm actually reinstalling Visual Studio to see if in some way can get rid of the problem, hoping I'm on the right path.

Any idea would be really appreciated.

UPDATE

To workaround the issue I renamed the folder

C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\Web Tools\Page Inspector

to C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\Web Tools\Page InspectorBLABLA.

In this way Visual Studio is no longer able to load the PageInspector libraries and the issue doesn't show up. So no high CPU no slowdowns. Of course I'm getting a couple of errors when VS launches: 'Eureka package didn't load correctly' and another more generic one.

I'm going to install the latest VS update to see if the issue has been solved.

like image 295
Alemiele Avatar asked May 05 '14 15:05

Alemiele


People also ask

Is Visual Studio code intensive CPU?

The vscode Code Helper (Renderer) process consumes a lot of cpu and causes a very high processor temperature, closing vscode and disabling all extensions will not solve the problem. After a clean reinstall the problem persisted.

How does Visual Studio analyze CPU usage?

Select Debug > Performance Profiler. Under Available tools, select CPU Usage, and then select Start. After the app starts, the diagnostic session begins and displays CPU usage data.

Is Visual Studio resource intensive?

I have recently downloaded Visual Studio 2022 and have found it using a high amount of CPU and memory. This causes Visual Studio (as well as my computer) to slow down at times. The CPU usage fluctuates between 20% - 99% and the Memory usage fluctuates between 2GB - 14GB of memory.


1 Answers

I had a similar issue, and disabling "Browser Link" fixed it. You can see how here.

like image 160
Jason Avatar answered Oct 13 '22 10:10

Jason