OutOfMemoryException thrown when loading solution

I've been banging my head against the wall on this one, but I've come to
the conclusion that our solution is just too big for Resharper, causing
it to die when it loads.

Eventually the background cache processor seems to eat up all the memory
available within VS.NET, causing OutOfMemoryException to be thrown all
over the place. I can't figure out why this is happening - the machine
has 2.5GB of memory and there's more than 1GB of free memory when this
happens.

The previous versions of resharper seemed to have no problem going above
1GB of memory. It's almost as if there's a hard limit on the amount of
memory this process can eat up.

Any ideas?

Matt.

5 comments
Comment actions Permalink

We are currently investigating this issue
OutOfMemoryException have been reported a lot of times, but it couldn't be
100% reproduced, though this exception ocuurs sometimes among us too.

It is interesting that upon this exception there is a lot of free memory.
Looks like some interferention between ReSharper heap utilization strategy
and the GC. Currently I can't report any date by which this issue should
have been fixed, but we are investigating it.

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Matthew Mastracci" <matt@aclaro.com> wrote in message
news:dsth0l$511$2@is.intellij.net...

I've been banging my head against the wall on this one, but I've come to
the conclusion that our solution is just too big for Resharper, causing it
to die when it loads.

>

Eventually the background cache processor seems to eat up all the memory
available within VS.NET, causing OutOfMemoryException to be thrown all
over the place. I can't figure out why this is happening - the machine
has 2.5GB of memory and there's more than 1GB of free memory when this
happens.

>

The previous versions of resharper seemed to have no problem going above
1GB of memory. It's almost as if there's a hard limit on the amount of
memory this process can eat up.

>

Any ideas?

>

Matt.



0
Comment actions Permalink

By the way, how big is your solution?

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Matthew Mastracci" <matt@aclaro.com> wrote in message
news:dsth0l$511$2@is.intellij.net...

I've been banging my head against the wall on this one, but I've come to
the conclusion that our solution is just too big for Resharper, causing it
to die when it loads.

>

Eventually the background cache processor seems to eat up all the memory
available within VS.NET, causing OutOfMemoryException to be thrown all
over the place. I can't figure out why this is happening - the machine
has 2.5GB of memory and there's more than 1GB of free memory when this
happens.

>

The previous versions of resharper seemed to have no problem going above
1GB of memory. It's almost as if there's a hard limit on the amount of
memory this process can eat up.

>

Any ideas?

>

Matt.



0
Comment actions Permalink

Eugene Pasynkov (JetBrains) wrote:

By the way, how big is your solution?


We currently have 98 projects.

I'll see if I can see anything in perfmon - maybe it is running out of
heap for a given GC generation?

Matt.

0
Comment actions Permalink

1) What is the overall size of your .cs files?
2) Does this exception occurs every time you open VS with ReSharper, or from
time to time?
3) What does TaskManager shows for devenv.exe?

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Matthew Mastracci" <matt@aclaro.com> wrote in message
news:43F2506F.4040705@aclaro.com...

Eugene Pasynkov (JetBrains) wrote:

>> By the way, how big is your solution?
>

We currently have 98 projects.

>

I'll see if I can see anything in perfmon - maybe it is running out of
heap for a given GC generation?

>

Matt.



0
Comment actions Permalink

Eugene Pasynkov (JetBrains) wrote:

1) What is the overall size of your .cs files?


There are approximately 4500 .cs files with a size of approximately 20 MB.

2) Does this exception occurs every time you open VS with ReSharper, or from
time to time?


It happened each and every time I opened the solution with 217. It
doesn't appear to happen with 218 (and didn't happen before 217 either)
- perhaps it was the result of an exception that has been fixed?

3) What does TaskManager shows for devenv.exe?


It was showing approx. 400 MB memory usage + 400 MB of virtual memory
usage. The OutOfMemoryException was thrown from either the internal C#
compiler of VS.NET or Resharper.

Matt.

0

Please sign in to leave a comment.