Top "Heap-memory" questions

The heap is process memory set aside for dynamic allocation.

How can I take a heap dump on Java 5 without garbage collecting first?

We have a long running server application running Java 5, and profiling it we can see the old generation growing slowly …

java garbage-collection heap-memory
Why a sawtooth shaped graph?

When I run the below mentioned code using NetBeans, the allocated heap size graph resembles a sawtooth shape. I am …

java jvm memory-management heap-memory jvisualvm
Java stack and heap memory management

I want to know how the memory is being allocated in the following program: public class MemoryClass { public static void …

java memory memory-management heap-memory stack-memory
How much memory do we have to set for JAVA_OPTS in catalina.sh

Following are my system configuration java version "1.6.0_17" Tomcat 6.0.18 OS : Cent OS 5.7 Following is my JAVA_OPTS in Catalina.sh JAVA_…

java tomcat6 heap-memory catalina
Where is allocated variable reference, in stack or in the heap?

I have a question What happend when I declare a variable inside a method, for example. void myMethod() { Ship myShip = …

java concurrency heap-memory stack-memory
Why JVM calculated PS Survivor Space size too low for parallel collector

I am using JDK1.6.0_16 JVM for the java application that is hosted on an Linux Intel procesor 80 cores machine. while …

garbage-collection jvm heap-memory jvm-arguments parallel-collections
Is it better to use heap or stack variables?

An experienced C++ user told me that I should strive for using heap variables, i.e.: A* obj = new A("…

c++ variables heap-memory stack-memory
Stack vs. Heap in Javascript? (Maximum call stack size exceeded)

I'm trying to build a web-page for which I need to shovel around several 100MB of data in JavaScript. With …

javascript memory-management heap-memory stack-memory
Thread safety with heap-allocated memory

I was reading this: http://en.wikipedia.org/wiki/Thread_safety Is the following function thread-safe? void foo(int y){ …

c++ thread-safety heap-memory stack-memory
How to find if a variable is allocated in stack or heap?

Stumbled upon this interview question somewhere, In C, Given a variable x, how do you find out if the space …

c++ c heap-memory stack-memory