Is this normal?

I have a solution in Vs2008 with 8 projects and hundreds of source files.  Usually the IDE is fairly snappy, however, when I crank out Resharper 4.5.2, it eats memory like my kids eat candy.  Plus the CPU usage goes through the roof when I am actually doing something in the IDE.

Is this normal?

http://i.imgur.com/x7lkr.png

http://i.imgur.com/OghlI.png

9 comments
Comment actions Permalink

Hello Frank

     Is the memory usage that high immediately after you've opened your solution or it gradually gets bigger? Could you please run Visual Studio (devenv.exe) with /ReSharper.LogFile "C:\log.txt" /ReSharper.LogLevel Verbose for some time, monitor the memory usage and attach the resulting log file here? Thank you!

Andrey Serebryansky

Support Engineer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

0
Comment actions Permalink

Typically the memory usage is not that high immediately, but it does get there pretty darn fast.  I'd say that in 20 minutes of use I can get it there easily.

This time around, I started the IDE, then I had to go and do something else, however, when I got back and did a couple of refactorings, the memory usage, CPU and the R# memory indicator all shot up.  For instance, the last memory indicator was at 435 MB.

Anyway, log attached.



Attachment(s):
rsmem.png
log_2.zip
0
Comment actions Permalink

Hello Frank

     Thank you very much for this information! Could you please answer the following questions as well:

     1. How many files do you keep opened at the same time in Visual Studio?

     2. How big (in terms of lines-of-code) are those files?

     3. Do you have solution-wide analysis turned on?

     

     Could you please check if disabling solution-wide analysis and code analysis (under ReSharper | Options | Code Inspection | Settings) helps to reduce the memory usage?

Andrey Serebryansky

Support Engineer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

0
Comment actions Permalink
  1. Usually 4-5.  However, yesterday's log was mostly created with one tab, maybe two.
  2. The opened files are typically 4-6 thousand lines.  One or two of these files has the InitializeComponents() method in the main file (not the designer).  Not sure whether this matters or not.  
  3. No


Turning Code Inspection off does reduce CPU usage, but Code Inspection is the primary reason I use Resharper.

0
Comment actions Permalink

So anything?

0
Comment actions Permalink

Hello frank,

At the moment disabling code analysis is the only way to speed up ReSharper
4.5 on large files. You can use Ctrl+8 shortcut to toggle code analysis for
the current file instead of using the options page. Splitting files into
smaller ones can help as well. Thank you!

Andrey Serebryansky
Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

So anything?

---
Original message URL:
http://devnet.jetbrains.net/message/5268191#5268191



0
Comment actions Permalink

Does 5.x fix this issue?

0
Comment actions Permalink

So, it this something that's been fixed in 5.0?  Trying to gage whether I need to upgrade or not.

0
Comment actions Permalink

Hello frank,

We've improved the speed and the memory usage of code analysis process since
ReSharper 4.5, so I would suggest to download and install ReSharper 5.1 (from
http://www.jetbrains.com/resharper/download), choose 'Free Trial' and check
if it works better for you. You can always go back and install ReSharper
4.5. Thank you!

Andrey Serebryansky
Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

So, it this something that's been fixed in 5.0?  Trying to gage
whether I need to upgrade or not.

---
Original message URL:
http://devnet.jetbrains.net/message/5268808#5268808



0

Please sign in to leave a comment.