Top "Heap" questions

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

What and where are the stack and heap?

Programming language books explain that value types are created on the stack, and reference types are created on the heap, …

memory-management stack language-agnostic heap dynamic-memory-allocation
Could not reserve enough space for object heap

I am getting the following exception repeatedly each time I try to run the program. Error occurred during initialization of …

java jvm heap
Command-line Tool to find Java Heap Size and Memory Used (Linux)?

Is there a Command-line Tool (Linux) to check Heap Size (and Used Memory) of a Java Application? I have tried …

java linux performance memory heap
java.lang.OutOfMemoryError: GC overhead limit exceeded

I am getting this error in a program that creates several (hundreds of thousands) HashMap objects with a few (15-20) …

java hashmap heap heap-memory g1gc
How is the default max Java heap size determined?

If I omit the -Xmxn option from the Java command line then a default value will be used. According to …

java heap heap-memory
How do I analyze a .hprof file?

I have a production server running with the following flag: -XX:+HeapDumpOnOutOfMemoryError Last night it generated a java-38942.hprof file …

java profiling heap
How can building a heap be O(n) time complexity?

Can someone help explain how can building a heap be O(n) complexity? Inserting an item into a heap is …

algorithm heap complexity-theory construction
Using HeapDumpOnOutOfMemoryError parameter for heap dump for JBoss

I was told I can add the -XX:+HeapDumpOnOutOfMemoryError parameter to my JVM start up options to my JBoss start …

java jboss memory-leaks heap
Priority queue in .Net

I am looking for a .NET implementation of a priority queue or heap data structure Priority queues are data structures …

c# .net data-structures heap priority-queue
How do I set Java's min and max heap size through environment variables?

How do I set Java's min and max heap size through environment variables? I know that the heap sizes can …

java environment-variables heap