VS 2008 CPU Usage 100%
Ok, I know this is already posted in a few forums, but they seem to be quite old (2006 and 2008).
I am using VS 2008 SP1 on WinXP 32bit, 3G ram.
I was using the official release of R# 4.5 but installed the most recent nightly build. BOTH versions were experiencing the same high CPU usage.
I know R# is the issue because if I uninstall it, or remove the add-in, VS works fine, no CPU spikes.
I don't have CodeRush installed, or any other VS plugins.
Everything I type causes a cpu spike.
I've tried disabling code analysis, still happens, site-wide analysis is off.
I've disabled virtually all R# options but it still happens. The only way to fix this is to remove R#, which is a shame because I truely like this product but it is currently making development impossible.
I will listen to any and all suggestions, anything you need from me I will try to provide.
Please help.
Please sign in to leave a comment.
I should note, it only happens when typing, pasting, etc.
Scrolling doesn't cause the spike, opening files doesn't cause the spike.
Current R# build is: 4.5.1284 on 2009-09-21 18:29:20
Hello Cory
How big (in terms of 'lines of code') are the files you're editing? Could you please describe your hardware configuration in detail?
Andrey Serebryansky
Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"Our solution has roughly 21 projects in it.
Files sizes range from a few lines to a few hundred lines, some larger files over 2000 lines.
It seems to happen on 200+ line files.
My computer is a Pentium D 3Ghz with 3gigs of ram.
I uninstalled R# yesterday, and reinstalled it and this seems to help for a little while but then I experienced the same cpu spikes after a few hours.
When I was working in VS 2005 last week, I didn't experience the spikes. We just switched to VS2008 this week and this is when the problems started.
If it makes a difference, I originally only had R# installed for VS 2005, after VS2008 was installed, I "repaired" R# and included VS2008 integration.
I thought this might have been the issue and this is why I uninstalled and reinstalled it yesterday.
Thanks for the help, let me know if there is anything else I can provide.
Hello Cory
Could you please tell us what exactly concerns you about those cpu spikes? Did typing (or other actions) become slower with ReSharper? In order to further troubleshoot the problem, could you please switch back to built-in Visual Studio IntelliSense under ReSharper > Options > General? Let me know if this helps. Thank you!
Andrey Serebryansky
Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
I would just like to chime in that I see what I assume is the same problem ( the dev machines is a core-duo 2.13 GHz, 4 Gig Ram) and only one of the two CPUs maxes out but it still slows down enough that I am forced to quit VS and restart the machine. To clarify, once the CPU maxes out it stays maxed out, it acts as if some endless loop has high priority. I have seen it on multiple solutions including one that has only three relatively small projects where the total line count of the solution is about 5K lines (per the Analyze menu code metrics option) and all manually generated source files are under 1,000 lines and most are under 100. The number of hours it takes before the problem occurs seems to vary. On the larger solution it would happen pretty reliably every day about once per day (rarely twice). If I left the solution open and the computer on (not going to sleep) over night, the next day the problem would always be there. On the smaller solution it seems to happen less frequently. When looking at the task manager, no process is shown as taking the CPU. In fact the Idle process may show 80-90% but the CPU graph indicator shows that one cpu is maxed out and I believe the indicator because I always know when the problem happens because the editing environment becomes slow enough to be unusable. I am addicted enough to R# that I'm just resigned to rebooting my machine once a day but it would be nice to have a fix. Below is some detail on the VS 2008 configuration.
-------------------
Microsoft Visual Studio 2008
Version 9.0.30729.4056 QFE
Microsoft .NET Framework
Version 3.5 SP1
Installed Edition: Enterprise
Microsoft Visual Basic 2008 91904-270-1188021-60323
Microsoft Visual Basic 2008
Microsoft Visual C# 2008 91904-270-1188021-60323
Microsoft Visual C# 2008
Microsoft Visual C++ 2008 91904-270-1188021-60323
Microsoft Visual C++ 2008
Microsoft Visual Studio 2008 Team Explorer 91904-270-1188021-60323
Microsoft Visual Studio 2008 Team Explorer
Version 9.0.30729.1
Microsoft Visual Studio 2008 Tools for Office 91904-270-1188021-60323
Microsoft Visual Studio 2008 Tools for Office
Microsoft Visual Studio Team System 2008 Development Edition 91904-270-1188021-60323
Microsoft Visual Studio Team System 2008 Development Edition
Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved.
The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved.
Microsoft Visual Web Developer 2008 91904-270-1188021-60323
Microsoft Visual Web Developer 2008
AnkhSVN - Subversion Support for Visual Studio 2.1.7141.181
AnkhSVN - Subversion Support for Visual Studio 2.1.7141.181
* Ankh.Package 2.1.7141.181
* Subversion 1.6.4 via SharpSvn 1.6004.1334.38618
AnkhSVN is linked to: Apr 1.3.8, Apr-util 1.3.9, Neon 0.28.5, OpenSSL 0.9.8k 25 Mar 2009, serf 0.3.0, SQLite 3.6.16, Subversion 1.6.4-SharpSvn-tag-1.6.4@38618, ZLib 1.2.3
AnkhSVN is dynamically linked to: Cyrus Sasl 2.1.23
AnkhSVN is optionally linked to: Berkeley DB 4.4.20, SharpPlink 1.6004.1334.38618
Crystal Reports AAJ60-G0MSA4K-68000CF
Crystal Reports Basic for Visual Studio 2008
Hotfix for Microsoft Visual Studio 2008 Shell (integrated mode) - ENU (KB960075) KB960075
This hotfix is for Microsoft Visual Studio 2008 Shell (integrated mode) - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/960075.
Hotfix for Microsoft Visual Studio 2008 Team Explorer - ENU (KB946260) KB946260
This hotfix is for Microsoft Visual Studio 2008 Team Explorer - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/946260.
Hotfix for Microsoft Visual Studio 2008 Team Explorer - ENU (KB946458) KB946458
This hotfix is for Microsoft Visual Studio 2008 Team Explorer - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/946458.
Hotfix for Microsoft Visual Studio 2008 Team Explorer - ENU (KB948816) KB948816
This hotfix is for Microsoft Visual Studio 2008 Team Explorer - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/948816.
Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB944899) KB944899
This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/944899.
Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB945282) KB945282
This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/945282.
Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB946040) KB946040
This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/946040.
Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB946308) KB946308
This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/946308.
Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB946344) KB946344
This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/946344.
Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB946581) KB946581
This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/946581.
Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB947171) KB947171
This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947171.
Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB947173) KB947173
This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947173.
Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB947180) KB947180
This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947180.
Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB947540) KB947540
This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947540.
Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB947789) KB947789
This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947789.
Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB948127) KB948127
This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/948127.
Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB952241) KB952241
This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/952241.
Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB953256) KB953256
This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/953256.
Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB971091) KB971091
This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/971091.
Hotfix for Microsoft Visual Studio Team System 2008 Development Edition - ENU (KB973674) KB973674
This hotfix is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/973674.
Microsoft Visual Studio Team System 2008 Development Edition - ENU Service Pack 1 (KB945140) KB945140
This service pack is for Microsoft Visual Studio Team System 2008 Development Edition - ENU.
If you later install a more recent service pack, this service pack will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/945140.
Nevron 1.0
Installs Nevron .NET Vision components in the Visual Studio Toolbox
ReSharper 4.5 Full Edition build 4.5.1231.7 on 2009-04-08T16:10:26
ReSharper add-in for Microsoft Visual Studio. For more information about ReSharper, see the ReSharper website at http://www.jetbrains.com/resharper. Copyright © 2003–2009 JetBrains, Inc
CodeKeep 1.0 (VS 2008)
For additional updates and add-ins, see the CodeKeep
web site at http://www.codekeep.net.
Copyright (c) 2008 Arcware, Inc.
My concern with the CPU spikes is that for 3-4 seconds, I can''t type. It's like VS freezes while it waits for R# to do whatever it is doing.
As you can imagine, writing an application 2 characters every 3-4 seconds is not very productive.
I have tried switching to the VS IntelliSense and back to R#'s IntelliSense but experienced the same behaviour.
Microsoft Visual Studio 2008
Version 9.0.30729.1 SP
Microsoft .NET Framework
Version 3.5 SP1
Installed Edition: Professional
Microsoft Visual Basic 2008 91605-270-1508383-60521
Microsoft Visual Basic 2008
Microsoft Visual C# 2008 91605-270-1508383-60521
Microsoft Visual C# 2008
Microsoft Visual Studio 2008 Tools for Office 91605-270-1508383-60521
Microsoft Visual Studio 2008 Tools for Office
Microsoft Visual Web Developer 2008 91605-270-1508383-60521
Microsoft Visual Web Developer 2008
Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB944899) KB944899
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/944899.
Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB945282) KB945282
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/945282.
Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB946040) KB946040
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/946040.
Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB946308) KB946308
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/946308.
Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB946344) KB946344
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/946344.
Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB946581) KB946581
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/946581.
Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB947171) KB947171
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947171.
Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB947173) KB947173
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947173.
Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB947180) KB947180
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947180.
Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB947540) KB947540
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947540.
Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB947789) KB947789
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947789.
Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB948127) KB948127
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/948127.
Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB953256) KB953256
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/953256.
Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB971092) KB971092
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/971092.
Microsoft Visual Studio 2008 Professional Edition - ENU Service Pack 1 (KB945140) KB945140
This service pack is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this service pack will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/945140.
protobuf-net 1.0
Provides code-generation for .proto within the IDE
ReSharper 4.5 Full Edition build 4.5.1284.0 on 2009-09-21T18:29:20
ReSharper add-in for Microsoft Visual Studio. For more information about ReSharper, see the ReSharper website at http://www.jetbrains.com/resharper. Copyright © 2003–2009 JetBrains, Inc
Security Update for Microsoft Visual Studio 2008 Professional Edition - ENU (KB973675) KB973675
This security update is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this security update will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/973675.
tangible T4 Editor 9.0
tangible T4 Text Template Editor - T4 Editor
tangibleprojectsystem 1.0
Provides a project system for use with standalone shell
Update for Microsoft Visual Studio 2008 Professional Edition - ENU (KB956453) KB956453
This update is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this update will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/956453.
Update for Microsoft Visual Studio 2008 Professional Edition - ENU (KB967143) KB967143
This update is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this update will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/967143.
VisualSVN 1.7.3
Integration with Subversion version control. For more information about VisualSVN, see the VisualSVN website at http://www.visualsvn.com
Copyright (c) 2005-2008 VisualSVN Ltd.
Hello Cory and Tod
Could you please follow the steps at http://www.jetbrains.net/confluence/display/ReSharper/ReSharper+Performance+Profiling+Instructions to gather snapshots of the performance problems you're experiencing and send them to andrew dot serebryansky at jetbrains dot com? This would really help us to track down these performance problems. Thank you!
Andrey Serebryansky
Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
Just wanted to chime in that I'm having the same issue (current setup is a clean windows 7 64 bit install, VS 2008, Resharper 4.5, everything patched). Typing anything, even white space results in a CPU usage spike on one or both cores for a few seconds. Multi-threading seems to work ok, as I can still type during this, but performance is severely degraded. This is usually temporarily fixed by restarting VS, but always comes back. Sometimes (and I don't know if this is a related issue) VS simply freezes on character input and I get the "Visual Studio is busy" dialog.
You guys have a wonderful product, but every version I've tried over the last several years absolutely crippled my Visual Studio.
I need to report that I tracked down my problem to a faulty hard drive. My CPU usage once it spiked would stay spiked. I documented how I tracked this down (in case it happens to anyone else ) on my blog.
Hi all
I join this thread too because I (we all in our team) have the same problem. After some time VS2008 slows down badly.
PC: QuadCore, 4GB RAM, SSD Drive
VS 2008 SP 1
ReSharper 4.5.1288.2
Solutions to work with: usually very big but it happens also with smaller ones.
I did the dotTrace but the compresses file is still 50MB. How to provide it to you Andrey? Have you already any information to share?
I also did the test to disable ReSharper temporay and the problem didn't appear. Managed Memory in status bar is 160-200MB.
I switched back to VS InteliSense but without any success.
Regards Daniel
Hello Egor
Could you please follow the steps athttp://www.jetbrains.net/confluence/display/ReSharper/ReSharper+Performance+Profiling+Instructions to gather snapshots of the performance problems you're experiencing and send them to andrew dot serebryansky at jetbrains dot com? Thank you!
Andrey Serebryansky
Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
Did anyone ever find a solution to this issue?
I am experiencing the exact same problems as the original poster. Is there an answer to this problem yet? Can someone from JetBrains please reply. No wishing to sound rude, but Resharper is simply making VS2008 unusable for me. I'm afraid I will have to uninstall it and ask for a refund if I can't fix this problem.
Jetbrains,
Anything? Your lack of response is bothersome. This is an issue I have seen discussed on other forums and blog posts, yet there seems to be no workaround. Do you really have nothing to say about this issue? Well at least I know what my next blog post will be about.
I've attached a screen shot of what it looks like when I use VS2008 and Resharper. If you view the image you'll see the CPU is constantly being 100% utilized, meaning I can't do anything while it's pegged.
Attachment(s):
ReshaperUsage.JPG
Hello Matthew
I've sent a reply to you via e-mail. Let me know if this helps. Thank you!
Andrey Serebryansky
Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
Andrey,
Can you post the email in this thread or send it to me as well please?
Thanks.
Hello Matt
First of all you should turn off code analysis (either for the current file using Ctrl+8 (R# 4.5)/Ctrl+Alt+Shift+8(R# 5.0) or completely through ReSharper > Options > Code Inspection > Settings) and check if this helps. Please also describe your hardware configuration in detail and tell us more about the solution you're working on (the number and types of projects, average file size (in terms of lines-of-code). Thank you!
Andrey Serebryansky
Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
I think it's to do with the file size (lines of code). It doesn't happen all the time and my machine is plenty fast. I noticed it happening with one code file, in specific, that happens to be around 20,000 lines of code . Unfortunately we adopted this code and therefore the standards are very poor, causing ReSharper probably to go into "overdrive" and utilize the CPU to its fullest. I have turned off the analysis like you have outlined and it resolved my issue. Thanks.
I'm experiencing a similar issue with ReSharper 4.5 and 5/VS 2008 and 2010, please see this issue report: http://youtrack.jetbrains.net/issue/RSRP-179107.
Let me know if I can help in tracking down the problem.
Edit: In my case, the CPU spikes correlate with induced garbage collection (someone calling GC.Collect()), and they start at about 270 MB of memory usage.
Regards,
Fabian