[1760] Frequently OutOfMemoryException

Environment:

     Visual Studio 2008
     Windows XP SP3
     Microsoft Visual Source Safe
     Intel Core2Duo (E8400) with 3 GHZ
     3,5 GB RAM

I'm working on a VB solution. After spending some time to design a form i edited a class file. In this file i added a new member variable and some initialization code for this variable. Then i created a new method via Copy / Paste and overwriting the method name. Next i changed the code of the copied method. I used R#'s rename refactoring to rename a parameter of the method and then i tried to change some other variable names. Suddenly the IDE was inresponsive and after a while a bunch of OutOfMemoryExceptions where thrown. I could not edit the text in the exception reporter because the window suddenly disappears and another exception reporter window was shown. I took a look at VS memory via process Explorer. I've seen 1,5 GB virtual size, 1 GB Working Set Size, 600 MB Heap Bytes and 30% Garbage Collector activity.

The solution i'm working on was migrated from VB6 to .NET. The code base is around ten years old. There is much procedural code, much duplicate code. Many of the code files have more than 5.000 lines of code and there are many many endless methods with some hundreds lines of code with deeply nested if .. else and for loops. Overall it has around 250.000 lines of code. (Please note that i only have to maintain the code. In my opinion the lifecycle of the application has ended and my customer should reimplement it).

Older releases of R#, including the first 5.1.2 EAP builds, worked fine with the solution.

5 comments
Comment actions Permalink

my problem seems to occur in combination with changes on large source files. Yesterday and this morning i worked without problems. In this period i primarily worked with small source files. Just now i started to change a large source file with around 5.000 lines of code. After inserting three new lines i had the OutOfmemoryExceptions again.

0
Comment actions Permalink

Hello Klaus,

Do I understand correctly that OOM exception occurs even if ReSharper code
analysis is disabled for the file you're editing? Thank you!

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

my problem seems to occur in combination with changes on large source
files. Yesterday and this morning i worked without problems. In this
period i primarily worked with small source files. Just now i started
to change a large source file with around 5.000 lines of code. After
inserting three new lines i had the OutOfmemoryExceptions again.

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



0
Comment actions Permalink

i haven't tried this until now. Unfortunately the problem seems not to be really reproducible. After the third OOM  and restart of VS i could work with the file without any problems. Tomorrow i will revert my changes on the file and do them again in the hope to get the OOM's again. if i can reproduce it this way, i will try to profile VS while editing and send you a snapshot.

Regards
Klaus

0
Comment actions Permalink

yesterday i installed build 1761, specially because YouTrack noticed me that some of my issues regarding OutOfMemoryExceptions where fixed. I noticed a perfomance boost and the memory footprint of Visual Studio is much smaller. Specially Find Usages, which i use frequently to analyze code, rocks now. Also i noticed that the editor did not become slower over the time.

Good Work
Klaus

0
Comment actions Permalink

Hello Klaus,

I'm glad to hear that :) Let me know if you'll experience this problem again.
Thank you!

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

yesterday i installed build 1761, specially because YouTrack noticed
me that some of my issues regarding OutOfMemoryExceptions where fixed.
I noticed a perfomance boost and the memory footprint of Visual Studio
is much smaller. Specially Find Usages, which i use frequently to
analyze code, rocks now. Also i noticed that the editor did not become
slower over the time.

Good Work
Klaus
---
Original message URL:
http://devnet.jetbrains.net/message/5280646#5280646



0

Please sign in to leave a comment.