ReSharper 2.0 for VS2003 -- memory PIG

After 2 days of suffering through the lags that ReSharper 2 introduced on my system, I deinstalled it. It was showing a memory usage of over 400MB versus 44.5MB that I see when using ReSharper 1.5 on the same solution (an ASP.NET project, our groups bread & butter app that I live in DAILY).

ReSharper 2 had some neat looking features and it's a shame I had to pull it off, but it was simply unbearable.

System specs:
Windows Server 2003 Enterprise SP1
Pentium 4 2.00GHz
760MB of RAM

Anyone have some advice? Perhaps this is a known issue and will be fixed in a future build?

-Tim

16 comments
Comment actions Permalink


Hi Tim,

You should invest in more RAM. This money is well spent if you can use
R# 2.0 then.

Ciao,
Jens


TimCav wrote:

After 2 days of suffering through the lags that ReSharper 2 introduced on my system, I deinstalled it. It was showing a memory usage of over 400MB versus 44.5MB that I see when using ReSharper 1.5 on the same solution (an ASP.NET project, our groups bread & butter app that I live in DAILY).

ReSharper 2 had some neat looking features and it's a shame I had to pull it off, but it was simply unbearable.

System specs:
Windows Server 2003 Enterprise SP1
Pentium 4 2.00GHz
760MB of RAM

Anyone have some advice? Perhaps this is a known issue and will be fixed in a future build?

-Tim

0
Comment actions Permalink

Hello TimCav,

what memory usage do you mean? Is it the value written in the VS status bar
or a parameter measured with the Task Manager?

Thanks.


Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

After 2 days of suffering through the lags that ReSharper 2 introduced
on my system, I deinstalled it. It was showing a memory usage of over
400MB versus 44.5MB that I see when using ReSharper 1.5 on the same
solution (an ASP.NET project, our groups bread & butter app that I
live in DAILY).

ReSharper 2 had some neat looking features and it's a shame I had to
pull it off, but it was simply unbearable.

System specs:
Windows Server 2003 Enterprise SP1
Pentium 4 2.00GHz
760MB of RAM
Anyone have some advice? Perhaps this is a known issue and will be
fixed in a future build?

-Tim



0
Comment actions Permalink

Thanks for responding Dmitry. I am talking about the value written in the lower left corner of the VS status bar.

0
Comment actions Permalink

Jens,

Please re-read the original message. 4 HUNDRED megabytes of memory usage in 2.0 versus FORTY-FOUR in 1.5. Buying more memory is not the answer to everything. There is clearly something wrong in 2.0 if the increase is that great. No application should chew up that much memory -- ReSharper isn't some photo or movie editing application, something that one would traditionally think of as a RAM hog.


Hi Tim,

You should invest in more RAM. This money is well
spent if you can use
R# 2.0 then.

Ciao,
Jens

>

0
Comment actions Permalink

Hello TimCav,

400 Mb in the status bar (the size of the managed heap as returned by GC.GetTotalMemory)
is indeed an outstanding value.
Could you please give us some estimation on the size of your solution? Also,
is that value (400 Mb) is constant in the process
of working in VS (the reason for this question is that it can drop dramatically
after a garbage collection)? Finally, is it true
that ReSharper 1.5 showed approx. 50 Mb on the same sources? Thank you in
advance.

Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Thanks for responding Dmitry. I am talking about the value written in
the lower left corner of the VS status bar.



0
Comment actions Permalink

Code directory contains 313 .aspx files, and 836 .cs files (aspx.cs and .cs), along with about 60 ascx and ascx.cs files.

Not sure if this is what you're asking for, let me know if you need additional information.

I believe I saw the number down in the lower 300's one or two times, but remember, I found the experience so unbearable that I quickly removed it and went back to 1.5 -- I simply was not able to get my work done, it brought VS to it's knees.

Yes, 1.5 really showed that lower number in the same solution -- it's the only project we work on, and it's the only thing I'm in, every day.

0
Comment actions Permalink

Hello TimCav,

could you also please tell us how large your solution in terms of megabytes
of source code? Thanks.


Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Code directory contains 313 .aspx files, and 836 .cs files (aspx.cs
and .cs), along with about 60 ascx and ascx.cs files.

Not sure if this is what you're asking for, let me know if you need
additional information.

I believe I saw the number down in the lower 300's one or two times,
but remember, I found the experience so unbearable that I quickly
removed it and went back to 1.5 -- I simply was not able to get my
work done, it brought VS to it's knees.

Yes, 1.5 really showed that lower number in the same solution -- it's
the only project we work on, and it's the only thing I'm in, every
day.



0
Comment actions Permalink

Now you're getting a bit far fetched in your request -- I could do a simple right click on the folder and give you the size value shown in the properties box, but that would include things like the dll sizes for custom controls, the resharper cache size for this solution, the contents of the bin folder, the contents of the soure control repository hidden files (cvs), etc. etc. A ballpark value on the size of the code minus the bin directory value and minus the _ReSharper directory value is 20,227,128 bytes. If you could provide me with a more accurate method for calculating what you're asking for, I'll be happy to get that information for you.

I only had one or 2 files open in the code editor and was seeing this high memory usage. Quickly VS and restarting was still showing it. Erasing the _ReSharper cache folder in my solution directory didn't help either.

SHIFTCTRLN to do a quick file open (one of my favorite features!) lagged my machine so bad I wanted to scream.

What memory usage should I be expecting to see instead? Have you done profiling of 1.5 vs 2.0 memory usage?

FYI -- I won't be available to watch this thread again until Tuesday, May 30th. Going out of town in a couple of hours from now and won't even be thinking about computers for a few days.

Thanks for looking into this problem.

-Tim

0
Comment actions Permalink

Hello TimCav,

I agree with Jens that more memory is the quickest solution to your complaint.
I think the key word in your last message is "should", indicating your expectations
may be unrealistic. I have 2GB of memory and have disabled virtual memory
to reduce paging. The result was an incredible performance boost. I am certain
RAM is much less expensive that your time spent waiting on R# to perform
it's amazing and wonderful tasks. I believe more realistic expectations are
based on an honest assessment of the processing R# does.

I feel you'd find a majority of R# users accept the performace trade-off
and likely never visit this forum to praise the JetBrains team for their
accomplishments. Photo and video apps are memory hogs, I agree. But I don't
know of any other application like R# that provides such utility. Perhaps
you shouldn't think so traditionally?

Best of luck!

Ed

Jens,

Please re-read the original message. 4 HUNDRED megabytes of memory
usage in 2.0 versus FORTY-FOUR in 1.5. Buying more memory is not the
answer to everything. There is clearly something wrong in 2.0 if the
increase is that great. No application should chew up that much
memory -- ReSharper isn't some photo or movie editing application,
something that one would traditionally think of as a RAM hog.

>> Hi Tim,
>>
>> You should invest in more RAM. This money is well
>> spent if you can use
>> R# 2.0 then.
>> Ciao,
>> Jens


0
Comment actions Permalink

We have 2Gig of memory on all our development machines. I can't imagine
trying to do any serious development on a machine with less than 1Gig.

Get more memory. All sorts of things will be faster, beyond making
Resharper usable.


"TimCav" <no_reply@jetbrains.com> wrote in message
news:23974868.1148643076372.JavaMail.itn@is.intellij.net...

Jens,

>

Please re-read the original message. 4 HUNDRED megabytes of memory usage
in 2.0 versus FORTY-FOUR in 1.5. Buying more memory is not the answer to
everything. There is clearly something wrong in 2.0 if the increase is
that great. No application should chew up that much memory -- ReSharper
isn't some photo or movie editing application, something that one would
traditionally think of as a RAM hog.

>
>>
>> Hi Tim,
>>
>> You should invest in more RAM. This money is well
>> spent if you can use
>> R# 2.0 then.
>>
>> Ciao,
>> Jens
>>
>>


0
Comment actions Permalink

Hello TimCav,

ReSharper 2.0 should definitely use more memory compared to 1.5, as it stores
more
information about the solution. However, the difference should be far from
such a dramatic (tenfold).
For instance, ReSharper sources are themselves relatively large solution
- it is much larger than 20 Mb (around
40 Mb), but on my machine ReSharper normally shows 150 Mb of managed memory
in the status bar. So 400 Mb
is certainly an outstanding result. What I suggest is to file a request to
our tracker briefly describing the parameters
of your solution, the huge memory usage you're experiencing and the fact
that the solution is mostly an ASP - may
this is where the problem is rooted. We'll then investigate this issue prior
to the bugfix update for 2.0. Thanks in advance.


Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Now you're getting a bit far fetched in your request -- I could do a
simple right click on the folder and give you the size value shown in
the properties box, but that would include things like the dll sizes
for custom controls, the resharper cache size for this solution, the
contents of the bin folder, the contents of the soure control
repository hidden files (cvs), etc. etc. A ballpark value on the size
of the code minus the bin directory value and minus the _ReSharper
directory value is 20,227,128 bytes. If you could provide me with a
more accurate method for calculating what you're asking for, I'll be
happy to get that information for you.

I only had one or 2 files open in the code editor and was seeing this
high memory usage. Quickly VS and restarting was still showing it.
Erasing the _ReSharper cache folder in my solution directory didn't
help either.

SHIFTCTRLN to do a quick file open (one of my favorite features!)
lagged my machine so bad I wanted to scream.

What memory usage should I be expecting to see instead? Have you done
profiling of 1.5 vs 2.0 memory usage?

FYI -- I won't be available to watch this thread again until Tuesday,
May 30th. Going out of town in a couple of hours from now and won't
even be thinking about computers for a few days.

Thanks for looking into this problem.

-Tim



0
Comment actions Permalink

TimCav schreef:

...It was showing a memory usage of over 400MB versus 44.5MB

> that I see when using ReSharper 1.5 ...

After 5 minutes the task manager showed over 800 MB in one solution...

Danny
---

0
Comment actions Permalink

I program on a system with a fair amount of code involved, though not quite as large as yours (~128 pages and controls, and about 350 .cs files) , the entire solution, is a grand total of about 8MB of code or so, and my usage in VS (using the Managed mem display) is about 22MB at the start of R#.

This is R# 2.0 on VS2003 , 2.8GHz, 1GB RAM.

0
Comment actions Permalink

I've got a solution with about 35 projects. Mostly libs and two exe's. Around 14 MB of c# code files. It consists of about 180 winforms with approximately 2 - 5 "home brewn" custom controls and additionally some open sourc components + .net fw built in controls. Other than that it consists of rather much application logic libraries. No web projects or other.

R# reports around 60 - 90 MB of the managed heap (hav never tried to check the whole process size + virtual memory).

VS2003, 1.8GHz Mobile, 2GB RAM.

In conclusion I don't have any problems with memory any more (I had earlier in the EAP), though I've got other problems with R#.

I think it could (maybe) rather easy for JetBrains to write a "graph printer" to print out what objects and their relations to easier examine why some people do have a large managed heap (or do they?) ?

Regards,
Mario

0
Comment actions Permalink

In regards to the "Graph Printer", I think you can use the dotTrace product that integrates with R# 2.0 to figure out what is using the most memory.

0
Comment actions Permalink

I would like to mention I have been working on a somewhat smaller project this weekend, and have experienced the issues you were describing... Even on this small project where I have been editing 3-5 pages, after only an hour or so of usage, taskman showed my devenv using over 500MB, and the memory usage in the status bar showed 250MB+.... The whole solution is only about 35 ASPX pages, and the underlying code a grand total of 2MB, ...tops...

Maybe there is a memory leak or some sort of inefficient memory usage editing aspx files... one of the aspx files I am working on is about 135 controls (textboxes and labels mostly), with only 2 custom controls, which are in themselves only datagrids.... hope this helps?

I always edit in HTML mode, never using Design mode.

PS This may account for why it does it in 2.0 and not 1.5, since I don't think 1.5 had ASPX page-side support?

0

Please sign in to leave a comment.