Top "Heap" questions

A heap (data structure) is a tree that is ordered with respect to depth.

Android: BitmapFactory.decodeStream() out of memory with a 400KB file with 2MB free heap

My app is hitting an OOM error at the following line in the source: image = BitmapFactory.decodeStream(assetManager.open(imgFilename)); …

android heap
When vectors are allocated, do they use memory on the heap or the stack?

Are all of the following statements true? vector<Type> vect; //allocates vect on stack and each of the …

c++ stl vector stack heap
What is the difference between "new" and "malloc" and "calloc" in C++?

What is the difference between "new" and "malloc" and "calloc" and others in family? (When) Do I need anything other …

c++ memory-management malloc heap
How to dynamically monitor Java heap size?

I am trying to monitor the java heap size dynamically. Does anybody know how to get the maxmium memory used …

java monitoring heap
JMeter OutOfMemoryError

I am facing below OutOfMemor errors, and JMeter stops working.... java.lang.OutOfMemoryError: Java heap space Dumping heap to java_…

memory heap jmeter out-of-memory heap-memory
Android heap size on different phones/devices and OS versions

Does anyone know if the heap size on Android phones is a constant value according to what is set in …

android heap
Recommendations for a heap analysis tool for Java?

List your favorite heap analysis tools (e.g. jprofiler, jmap, ...). Let's keep it one tool per answer, with a short …

java memory profiling heap
What is memory fragmentation?

I've heard the term "memory fragmentation" used a few times in the context of C++ dynamic memory allocation. I've found …

c++ memory heap fragmentation
How do I give Jenkins more heap space when it's running as a daemon on Ubuntu?

My Jenkins jobs are running out of memory, giving java.lang.OutOfMemoryError messages in the build log. But I used …

java ubuntu jenkins out-of-memory heap
Jmap can't connect to make a dump

We have an open beta of an app which occasionally causes the heapspace to overflow. The JVM reacts by going …

java jvm heap