gjacquez
gjacquez

Reputation: 791

Visual Studio 2013/2015 Idle CPU usage

I'm currently evaluating Visual Studio 2015 RC. I've noticed when running the IDE, The Visual Studio 2015 process is constantly at around 25% CPU usage. Even without a project loaded and without the welcome page it is gobbling up 25% CPU usage at a constant rate. No other applications running other than background services. All other running processes use around an additional 2 to 4 percent CPU overall.

This behavior has also been noticed in Visual Studio 2013.

Is anyone else seeing this behavior? Is this normal? Any suggestions?

Upvotes: 73

Views: 25567

Answers (12)

Niranga
Niranga

Reputation: 778

In my case, The .suo file in Visual Studio was the culprit. Deleting it fixed my issue.

Refer below link for more details.

https://shemeerns.com/2014/04/04/the-solution-user-options-suo-file-in-visual-studio/

Upvotes: 0

Coskun Ozogul
Coskun Ozogul

Reputation: 2469

I want to share my experience, In my case I had to diable all extensions and updates and code analysis c#.

1-For extensions and updates :

Tools => Extensions and updates

2-For the code analysis

Solution explorer => right click on the project => Properties =>Click on the tab "Code analysis" => click on the "Open" bouton => Uncheck the checkbox "Microsoft.CodeAnalysis.CSharp" => save and exit.

Cpu usage descended to 1 %.

Upvotes: 0

EddieBT
EddieBT

Reputation: 11

I've noticed also that when running and stopping a debug episode on the local server, if the page is still open in the browser, VS will continue to run at high CPU. Closing the browser page stops this.

Upvotes: 0

Michael Brennt
Michael Brennt

Reputation: 751

In my case disabling Telerik ASP.NET MVC Extension solved high CPU issue.

High CPU load started on solution load and didn't drop (40% with one, 80% with two solutions) until VS was closed or even sometimes after (had to kill the process).

Tools->Extensions and Updates->Installed, find the extension and click 'Disable'.

Upvotes: 9

Alex
Alex

Reputation: 14503

In my case, the culprit was Node.js tools for Visual Studio. I had v1.1.2 installed and the cpu was constantly around 25-40%.

A switch to Node.js Tools v1.2 RC resolved the problem completely after an initial high load that went away in a couple of minutes.

Upvotes: 1

Atters
Atters

Reputation: 821

I run resharper, turned that off and turned off the Microsoft Git provider and still had high CPU issues, devenv.exe would also run after close... until recently.

It appears VS 2015 Update 2 has resolved these issues!

https://www.visualstudio.com/en-us/news/vs2015-update2-vs.aspx

Upvotes: 2

Neshta
Neshta

Reputation: 2745

In my case all reference counts tried to update every time when I edit code. enter image description here

I have just turned them off. You can do it this way.

Upvotes: 3

pinki
pinki

Reputation: 970

In my case it was either the Roaming Extention Manager or most probably the azure worker role project in my solution. If you have one of these try unloading it and restart visual studio. I can reproduce it but I don't know why it happens.

Upvotes: 0

ali
ali

Reputation: 1351

In my case; "Visual Studio 2015 Update 1" gone crazy editing JS files regarless of the length of the source. It used high CPU and the editor is even freezed. I fixed the issue by disabling the 3rd party add-ons by one-by-to detect the buggy one causing VS 2015 malfunctioning.

Hope it works.

Upvotes: 1

Oyvind Habberstad
Oyvind Habberstad

Reputation: 1052

I also had this problem, constant 20-40% CPU when idling (Visual Studio 2015 update 1). I noticed that other local repositories of the same code did not have this problem.

I deleted the problematic local repository and took a new checkout, this solved the issue for me. Why this worked, I unfortunately cannot explain...

Upvotes: 2

NoelC
NoelC

Reputation: 1419

It’s not to be expected that Visual Studio should chew up continuous CPU time.

I am running Visual Studio 2015 Community RTM right now with a medium sized project open, and am not seeing any ongoing CPU usage (according to Process Hacker 2, which shows usage as small as 0.01 percent). It’s just blank, which means not even 0.01% CPU usage is registering.

Keep in mind that IntelliSense scans your project files in the background to build the database for popping up its suggestions, etc.

Choosing Project > Rescan Solution from the menus will result in that process being done over, which will cause the CPU to be used for a time. But it should ultimately go quiet.

Seemingly forever, there have been times when deleting the Intellisense Database files and doing a full rescan solves “odd behavior” type problems. I don’t know if it’s the “prescribed” method, but if I suspect an IntelliSense problem I just delete the .sdf file in the project folder if I want to make sure Visual Studio starts with a clean slate. This isn’t necessary very often.

Upvotes: 2

Rad
Rad

Reputation: 8381

Had this same problem. Processor constantly at 45-50% even when the IDE is completely idle.

Turns out the problem is the Microsoft Git Source Code provider.

I turned that off and processor dropped to 0 and the IDE became much more usable.

Upvotes: 58

Related Questions