To configure GC, you usually do not need the lifetime of each object, but this is a good overview of pools in real time. The first thing I usually do is look at the various pools using visualgc, which is part of jvmstat (http://java.sun.com/performance/jvmstat/). Then I go on to check for memory leaks. This is by far the best way I've come across.
and. In jconsole, you can see if you are constantly overflowing into the old gene prematurely (this means that the eden was too large to fit in the survivor gc even after it). If so, check the rate of youth and survival and try to adjust them so that it does not overflow.
. , "" visualgc , , .
, . jconsole MAT (http://www.eclipse.org/mat/):
- jconsole.exe dumpHeap() HotSpotDiagnostic MBean (, .hprof)
- MAP , - , , .
.