Top "Out-of-memory" questions

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

Upload large file in Android without outofmemory error

My upload code as below: String end = "\r\n"; String twoHyphens = "--"; String boundary = "*****"; try { URL url = new URL(ActionUrl); …

android upload out-of-memory httpurlconnection
Causing OutOfMemoryError in Frame by Frame Animation in Android

I am having lots of images as frames in my resources/drawable folder (let say approx 200). And using this images …

android animation memory-leaks out-of-memory
OutOfMemoryException when I read 500MB FileStream

I'm using Filestream for read big file (> 500 MB) and I get the OutOfMemoryException. Any solutions about it. My Code …

c# bytearray download filestream out-of-memory
Loading a resource to a mutable bitmap

I am loading a bitmap from a resource like so: Bitmap mBackground = BitmapFactory.decodeResource(res,R.drawable.image); What I …

android bitmap out-of-memory android-canvas mutable
Elasticsearch OutOfMemoryError Java heap space

I am running an 8 cores, 32g RAM elasticsearch node with 5 shards, 400 million (small) documents. Everything works great until I run …

java elasticsearch out-of-memory heap-memory
Parallel.ForEach can cause a "Out Of Memory" exception if working with a enumerable with a large object

I am trying to migrate a database where images were stored in the database to a record in the database …

c# out-of-memory task-parallel-library large-data
StringBuilder Class OutOfMemoryException

I have written following function public void TestSB() { string str = "The quick brown fox jumps over the lazy dog."; StringBuilder …

c# out-of-memory stringbuilder
OutOfMemoryError when compiling my android app with gradle

I'm trying to build my app via gradle and I'm currently having this issue after running a ./gradlew build: :myApp:…

android gradle out-of-memory
Java unit testing: how to measure memory footprint for method call

Assuming I have a class that does some heavy processing, operating with several collections. What I want to do is …

java unit-testing junit out-of-memory testng
Android: OutofMemoryError: bitmap size exceeds VM budget with no reason I can see

I am having an OutOfMemory exception with a gallery over 600x800 pixels JPEG's. The environment I've been using Gallery with …

android gallery imageview out-of-memory ddms