27

I have a setup with Windows 10 and Visual Studio 2015 on a mac with VMWare Fusion 7. Visual Studio 2015 is running fine, but when i want to debug i need to close VS2015 and run it as administrator.

This is working ok, but after a while it start to use a lot of CPU and the fans starts to go crazy, and the whole machine is getting slow. This only happens when running VS2015 as adminitrator.

Anyone know how to fix this or why this happens?

Igoris Azanovas
  • 1,640
  • 1
  • 22
  • 37
user818129
  • 271
  • 1
  • 3
  • 4
  • upvote https://connect.microsoft.com/VisualStudio/feedback/details/2036016/after-close-process-is-still-running-with-hight-cpu-use – Boppity Bop Nov 20 '15 at 12:50

5 Answers5

21

Please check if you have Enable Browser Link set to on.

http://shrani.si/f/0/Hg/HiyN7X6/error.jpg

If so, turn it off :)

EDIT: Visual Studio 2013 Update 2 maxes out core

Community
  • 1
  • 1
Jure Potocnik
  • 489
  • 7
  • 21
15

The Microsoft Source control provider for git was the culprit for me. Once i turned of off processor usage dropped from an average of 40-55 % to 0-5%

Rad
  • 8,336
  • 4
  • 46
  • 45
  • How did you turn it off? – Colonel Panic Oct 21 '15 at 14:23
  • Turn off here: Tools > Options > Source Control – bluee Oct 28 '15 at 05:02
  • 1
    it seems any source control does it. mine running Ankh SVN. looked in the resource monitor and can tell for sure its Ankh.. in other thread guy complained about TFS.. So it seems VS has a bug when it comes to integration with a source control – Boppity Bop Nov 19 '15 at 18:18
  • This was it - pegged at 100% CPU until I disabled "Git" under Tools > Options > Source Control - TY! .. Terrible work MS – sean2078 Jan 18 '17 at 15:44
8

If you're sure the root cause is not your application you can try to identify the problem using the Windows Performance Toolkit (WPT) which is part of the Windows Assessment and Deployment Toolkit (ADK) for Windows 10 (see the bottom of the page).

The Windows Performance Analyzer allows you to view a lot of metrics related to CPU captured in trace and identify the process, thread, module and even DCP/ISR function that might cause the high usage. This might give you an idea of where the problem lies, eg. by identifying the system module that gets called etc.

enter image description here

enter image description here

Microsoft provides a detailed CPU Analysis guide including some techniques on how to identify potential issues here:

https://msdn.microsoft.com/en-us/library/windows/hardware/jj679884.aspx

For a more specific answer you should try to run a trace and share the findings here.

aergistal
  • 29,947
  • 5
  • 70
  • 92
0

http://blogs.msdn.com/b/visualstudioalm/archive/2015/07/20/performance-and-diagnostic-tools-in-visual-studio-2015.aspx

Start second instance of devenv -> Start perfomance analizer and attach it to your first devenv; so you will able analize report and check what eat CPU;

user1005462
  • 158
  • 2
  • 7
0

This suspect the issue was caused by a bug in the IDE itself. After many months of experimenting with turning off things like Resharper or the Microsoft Git Provider along came the VS 2015 Update 2 and it appears to have resolved the issue!

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

Atters
  • 801
  • 8
  • 19