Who suffers from "OutOfmemory" exception?

Hello everybody!

We are currently worried about "OutOfMemory" exception, which is throwed
rather frequently among EAP users. Though we do not currently understand the
reason of this exception (since usually there is a lot of available memory),
we are going to start deep investigation.

Please, if someone experience this problem often, could you describe the
type, code statistics of your solution, and may be work scenarios when this
exception is thrown most often.

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


14 comments
Comment actions Permalink


I get this exception a lot.
It occurs especially when I open huge files that had been generated by
the IDE. For example typed dataSets (*.xsd) or *.Designer.cs of complex
windows forms.

Ciao,
Jens

Eugene Pasynkov (JetBrains) wrote:

Hello everybody!

We are currently worried about "OutOfMemory" exception, which is throwed
rather frequently among EAP users. Though we do not currently understand the
reason of this exception (since usually there is a lot of available memory),
we are going to start deep investigation.

Please, if someone experience this problem often, could you describe the
type, code statistics of your solution, and may be work scenarios when this
exception is thrown most often.

0
Comment actions Permalink

1) How large these generated files are?
2) How much memory is on your computer?

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Jens Winter" <jens.winter@mdcc-fun.de> wrote in message
news:e2j67q$a1e$1@is.intellij.net...
>

I get this exception a lot.
It occurs especially when I open huge files that had been generated by the
IDE. For example typed dataSets (*.xsd) or *.Designer.cs of complex
windows forms.

>

Ciao,
Jens

>

Eugene Pasynkov (JetBrains) wrote:

>> Hello everybody!
>>
>> We are currently worried about "OutOfMemory" exception, which is throwed
>> rather frequently among EAP users. Though we do not currently understand
>> the reason of this exception (since usually there is a lot of available
>> memory), we are going to start deep investigation.
>>
>> Please, if someone experience this problem often, could you describe the
>> type, code statistics of your solution, and may be work scenarios when
>> this exception is thrown most often.
>>


0
Comment actions Permalink

Eugene Pasynkov (JetBrains) wrote:

1) How large these generated files are?
2) How much memory is on your computer?


The computer has got 1.2G of RAM.

I'm not in my office at the moment. So I can't give you exact numbers.
But there are files with a couple of thousands of lines.
The analysis bar thingie which shows those orange and red markers is
nearly completely colored with orange. So I assume with so large files
the Resharper analyser has some serious, hard work to do. :)

I'd really like to give you more details. But this is all I have right now.

Ciao,
Jens

0
Comment actions Permalink

Yes, I do receive this quite a bit, have 2GB of ram, and only using about half when this occurs.

0
Comment actions Permalink

Eugene Pasynkov (JetBrains) wrote:

Hello everybody!

We are currently worried about "OutOfMemory" exception, which is throwed
rather frequently among EAP users. Though we do not currently understand the
reason of this exception (since usually there is a lot of available memory),
we are going to start deep investigation.

Please, if someone experience this problem often, could you describe the
type, code statistics of your solution, and may be work scenarios when this
exception is thrown most often.


The .Net framework uses the OutOfMemory exception in a few very strage
places. For example, if an uncaught exception happens in the show event
of a form a OutOfMemoryException is thrown. COM interop also has this
habit once in a while. Isn't it possible that you're looking for the
wrong kind of error?

I've had loads of OutOfMemories in the past, it was one of the reasons
why I switched to another tool. But I remember they happen most oftaen
if you're doing a large number of rebuild+debug with a large number
large files open (preferably typed dataset code-behinds). It's never
reproducable though and the exact moment seems completely random.

Jesse

0
Comment actions Permalink

I typically get this exception 5-6 times per day. It seems to happen
far more frequently when I have items open in the designer, if I am only
working in code I may be able to code all day without seeing this problem.

My solution has 7 projects: 1 WinForm, 1 ASPNET and the rest are just
library code compiled to dll's.

My machine is has a dual-core P4 at 3.4GHz. I have 2GB memory
(typically only 2/3 used when I experience the exception). I recently
swapped the hard drive on my machine, even with a completely fresh
install of everything this exception still plagues me.

- Nate


Eugene Pasynkov (JetBrains) wrote:

Hello everybody!

We are currently worried about "OutOfMemory" exception, which is throwed
rather frequently among EAP users. Though we do not currently understand the
reason of this exception (since usually there is a lot of available memory),
we are going to start deep investigation.

Please, if someone experience this problem often, could you describe the
type, code statistics of your solution, and may be work scenarios when this
exception is thrown most often.

0
Comment actions Permalink

One thing that we've had happen in the past with the .NET framework is
that OutOfMemoryExceptions can be thrown not because RAM is depleted but
because the virtual memory space is too fragmented to allocate a
contiguous 64MB RAM block. The primary reason this has happened to us in
the past is due to the loading of many small temporary assemblies which
fragment up the RAM.

Not sure if this helps, but might be useful knowledge :)

-Greg

Eugene Pasynkov (JetBrains) wrote:

Hello everybody!

We are currently worried about "OutOfMemory" exception, which is throwed
rather frequently among EAP users. Though we do not currently understand the
reason of this exception (since usually there is a lot of available memory),
we are going to start deep investigation.

Please, if someone experience this problem often, could you describe the
type, code statistics of your solution, and may be work scenarios when this
exception is thrown most often.

0
Comment actions Permalink

Hello Eugene,

Second on that, I often get OOM when I edit large resx file (2000 lines)
and use any resharper feature while the file is open. In the 236 build it
is not as often as in previous builds. I use VS2003. It also seems that switching
from VS2003 to another application and back when such file is open "helps"
to get OOM.

It also seems that in 236 it began to hang VS instead of showing OOM. I had
to kill VS process few times a day since installed 236, and only few times
a week I've got OOM.

HW: p4 2.8, 1GB RAM, RAID0 system HDD with plenty of disk space.

Sincerely,
Ilya Ryzhenkov


EP> 1) How large these generated files are?
EP> 2) How much memory is on your computer?


0
Comment actions Permalink

I seam to remember on the VS bug tracker there is a memory management issue with Visual Studio. What happened is this, as you open and close files in their respective editors, the files never actually leave the memory. That's why VS sessions keep growing to extremely large RAM usage. This is especially noticeable when working with datasets. Open, close and re-open them several times and VS will grow a lot in RAM. I believe this (rather big bug) is to be fixed with VS2005SP1 but maybe you can get the hotfix for it too.

0
Comment actions Permalink

Hi Eugene,

I'm working on a solution with a rather large data layer generated by
(http://www.llblgen.com)

We have 2 project files containing such a layer, and both projecs
consist of about:

- 480 classes, around 212.000 lines
- the (debug) output files are: 2.1 mb for the DLL, and 8.2 mb for the DLL

My workstation (IBM T-42) is running Windows 2003 Server, VS2005 RTM
Architect with VSTS Architect, hardware: 1.8 ghz 2GB RAM

I don't regulary experience the OutOfMemory errors, but it gets bad
after enabling/disabling resharper from the add-ins menu (I had to
sometimes because I experienced errors in ASPX files and SSIS files).

I do experience some sluggishness when adding methods to these bloated
generated partial classes, and R# intellisense with methods that contain
180 overloads. (Don't ask me why these amounts exist... generated code
]]>)

Best Regards,

Wiebe Tijsma

Eugene Pasynkov (JetBrains) wrote:

Hello everybody!

We are currently worried about "OutOfMemory" exception, which is throwed
rather frequently among EAP users. Though we do not currently understand the
reason of this exception (since usually there is a lot of available memory),
we are going to start deep investigation.

Please, if someone experience this problem often, could you describe the
type, code statistics of your solution, and may be work scenarios when this
exception is thrown most often.

0
Comment actions Permalink

The (VS2003) solution where I usually run into this has 54 projects, of which 10 are .NET (C#) projects, and 44 are native C++ projects. Several of the .NET projects reference a mixed-mode .NET/native assembly that is not a part of this solution; a few reference some third-party assemblies. Most of the projects create assemblies; one creates an application, and one creates an NUnit test assembly.

The .NET projects total up to 190k lines of code (112k statements). We don't have an undue preponderance of visual code (forms and the like). I haven't pinned down any circumstances that cause this to happen, but I have noticed at least some correlation between the number of different files I open and the memory problems. There also seems to be a correlation between the number of builds I do and the memory problems.

Turning off the Resharper add-in prevents the problem from occurring entirely. Turning off all of my other add-ins does not prevent the problem. I have DevPartner Studio and DevPartner Fault Simulator installed. I don't have any trouble with other solutions containing native C++ or managed C++ projects (no C#), no matter how many files I open or builds I do.

0
Comment actions Permalink

We've found the possible memory leak root and fixed it in build 239.
Please could everybody install it, and then report about the
"OutOfMemory"...

Thanks in advance

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Eugene Pasynkov (JetBrains)" <Eugene.Pasynkov@jetbrains.com> wrote in
message news:e2j5ke$g5o$1@is.intellij.net...

Hello everybody!

>

We are currently worried about "OutOfMemory" exception, which is throwed
rather frequently among EAP users. Though we do not currently understand
the reason of this exception (since usually there is a lot of available
memory), we are going to start deep investigation.

>

Please, if someone experience this problem often, could you describe the
type, code statistics of your solution, and may be work scenarios when
this exception is thrown most often.

>

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"



0
Comment actions Permalink

Machine:
======================
Lenovo T60p
Memory: 1 GB
Disk Space: 80 GB
Proc Speed: 2.16 GHz
Virtual Memory: 1536 MB

Software:
======================
Visual Studio .NET 2003 Version 7.1.3088
Windows XP Professional Build 2600.xpsp.050928-1517 (Service Pack 2)

Installed Add-Ins
======================
Resharper EAP Build 237
DevMetrics Community Edition 2.0

Solution Metrics:
======================
Projects: 9
Lines of Code: 322,248
Types (Classes, Enums, Interfaces, ASPX, ASCX pages): 2,520
Files: 1,315

OOM occurs when Task Manager states that the system (all open applications including Visual Studio .NET 2003) is utilizing around 1.13 GB of RAM combined. Of this, Visual Studio .NET would be consuming between 400-500 MB. With just 1.5.1 installed Visual Studio .net typically hovers around 300 MB.

Typically gives OOM Exception about 2 hours after starting development. This happens mostly during debugging sessions. I would have just finished debugging and then would be restarting a debugging session and then I get the OOM Exception.

As I am the architect, I am the only one on my team running the EAP builds until they are stable.

Please let me know if you need some kind of memory dump or counters when the error occurs.

Hope this helps. I have been a corporate IDEA user for some time and when I made the switch to C#, your tool made life so much easier and made me just as productive as I had been in the Java world.

I will install 239 and let you know what happens.

Message was edited by:
Rodney J. Woodruff

0
Comment actions Permalink

Hi Eugene.

This problem relates to the swap file fragmentation. After I defragmented it exceptions completely gone.

Thanks,
Alex.

0

Please sign in to leave a comment.