Top "Out-of-memory" questions

An error or exception which is thrown when a program makes a request for memory that cannot be satisfied.

How does catching an OutOfMemoryException work?

I am a little bit confused about the fact that we can just catch an OutOfMemoryException using a try/catch …

c# .net clr out-of-memory
java.lang.OutOfMemoryError: PermGen space in Eclipse Helios

I have created an Xtext plugin in eclipse. Every time I launch it as an 'Eclipse Application' via the context …

eclipse out-of-memory helios xtext
Can the JVM recover from an OutOfMemoryError without a restart

Can the JVM recover from an OutOfMemoryError without a restart if it gets a chance to run the GC before …

java jvm out-of-memory
MemoryError in R while read.xlsx

I am using the following R code (that utilizes the Java parameter to increase memory as well): library(xlsx) options(…

java r out-of-memory heap r-xlsx
Release Memory of Particular Activity when it is Destroyed

I have a launcher Activity that load and resize big bitmap as it's background when it opens. Whenever hit the …

android android-studio out-of-memory android-bitmap android-memory
StringBuilder for string concatenation throws OutOfMemoryException

We mostly tend to following the above best practice. Have a look at String vs StringBuilder But StringBuilder could throw …

c# out-of-memory stringbuilder
Force garbage collection of arrays, C#

I have a problem where a couple 3 dimensional arrays allocate a huge amount of memory and the program sometimes needs …

c# arrays garbage-collection xna out-of-memory
Allocating more than 1,000 MB of memory in 32-bit .NET process

I am wondering why I'm not able to allocate more that 1,000 MB of memory in my 32-bit .NET process. The …

c# .net memory out-of-memory large-object-heap
How to list a 2 million files directory in java without having an "out of memory" exception

I have to deal with a directory of about 2 million xml's to be processed. I've already solved the processing distributing …

java file file-io out-of-memory
Android custom view Bitmap memory leak

I've got a custom view in which I need to draw two bitmaps, one is a background, representing the image …

android out-of-memory ondraw custom-view