Out Of memory errors

Hi,

I've noticed in 2.5.3 that I've started getting a lot of these
"An exception has occurred during action 'FindUsages' update ---> System.Exception: Error generating from file: ...\CoreProductControl.ascx ---> System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at System.Collections.ArrayList.set_Capacity(Int32 value)
at System.Collections.ArrayList.EnsureCapacity(Int32 min)
at System.Collections.ArrayList.Add(Object value)
at JetBrains.ReSharper.Util.OneToManyMap.AddValue(Object key, Object value) in c:\Agent\work\Server\ReSharper2.5\src\Util\src\dataStructures\OneToManyMap.cs:line 65"

Once it starts happening I have to restart visual studio. It seems to affect aspx/ascx files mostly. It seems worse with the latest version

Regards
Ian

5 comments
Comment actions Permalink

Hello Ian,

We are constantly investigating OutOfMemoryExceptions and fixing them as
soon as we find anything. Unfortunately, it is not as simple as analysing
stacktraces, because they almost never point to the problem place. It is
rather some memory-eating (actually, memory-fragmenting) buggy code somewhere
around, which puts CLR into the state when it begin to fail some random memory
allocations. It doesn't seem to be memory leak, because we looked at many
various cases with memory profiler and didn't notice anything of particular
interest.

The only thing that helped eliminate various memory problems in the past
were solutions sent by users with complete instructions to reproduce the
problem. Sometimes, even though users could reliably reproduce the problem
at their site with particular solution, we saw just normal behavior at our
labs. If you have solution that fails with out of memory exceptions after
specific set of operations, please send anything you can to me. We can sign
NDA, if needed.

As for ASP.NET projects, we're currently in the state of looking into various
cases that might lead to the problem with this kind of solutions. If you
have any specific information - please share. Thanks.

Sincerely,
Ilya Ryzhenkov

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


IR> Hi,
IR>
IR> I've noticed in 2.5.3 that I've started getting a lot of these
IR> "An exception has occurred during action 'FindUsages' update --->
IR> System.Exception: Error generating from file:
IR> ...\CoreProductControl.ascx ---> System.OutOfMemoryException:
IR> Exception of type 'System.OutOfMemoryException' was thrown.
IR> at System.Collections.ArrayList.set_Capacity(Int32 value)
IR> at System.Collections.ArrayList.EnsureCapacity(Int32 min)
IR> at System.Collections.ArrayList.Add(Object value)
IR> at JetBrains.ReSharper.Util.OneToManyMap.AddValue(Object key,
IR> Object value) in
IR> c:\Agent\work\Server\ReSharper2.5\src\Util\src\dataStructures\OneToM
IR> anyMap.cs:line 65"
IR> Once it starts happening I have to restart visual studio. It seems
IR> to affect aspx/ascx files mostly. It seems worse with the latest
IR> version
IR>
IR> Regards
IR> Ian


0
Comment actions Permalink

Thanks for the reply. I will try and find a repeatable way of getting this to occur, and get back to you.

Regards
Ian

0
Comment actions Permalink

The problem seems to be focus around aspx. It only crashes when editing those. It seems to be worse in 2.5.3 than previously. Unfortunately, it is unlikely that I can send you our code. The problem doesn't seem to be localised to any particular solution or project though.

Regards
Ian

0
Comment actions Permalink

I have run into the same problem regarding OutOfMemoryExceptions and aspx pages (and ascx controls). It seems to occur when working on the markup, not the codebehind.

Now that R# 3.0 is out, will there still be updates to 2.5 (to fix this, for example)? If so, where can we find out about the new updates? There is almost no mention of 2.5 except on the forums. That is expected but the support information would be very helpful.

0
Comment actions Permalink

I just downloaded "idea-6180" and i get this error all the time. Nothing that i have done helped. Let me know how i can help you.

java.lang.OutOfMemoryError: PermGen space
java.lang.OutOfMemoryError: PermGen space
Exception on Toolkit thread: java.lang.OutOfMemoryError: PermGen space
java.lang.OutOfMemoryError: PermGen space
java.lang.OutOfMemoryError: PermGen space

System
-


2 X Amd 64
Fedora 6 x 64
2 gb mem

0

Please sign in to leave a comment.