Visual Studio 2013/2015 Idle CPU usage

后端 未结 12 1748
温柔的废话
温柔的废话 2021-02-04 22:55

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

相关标签:
12条回答
  • In my case all reference counts tried to update every time when I edit code.

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

    0 讨论(0)
  • 2021-02-04 23:29

    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...

    0 讨论(0)
  • 2021-02-04 23:29

    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.

    0 讨论(0)
  • 2021-02-04 23:34

    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.

    0 讨论(0)
  • 2021-02-04 23:36

    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.

    0 讨论(0)
  • 2021-02-04 23:38

    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 %.

    0 讨论(0)
提交回复
热议问题