Start java app Start JConsole and attach as Local (pid for eclipse will be seen once the JConsole starts) Enter pathname to a *.hprof memory dump file in the dumpHeap (p0 value) in JConsole's MBean tab > HotSpotDiagnostic > Operation Open the hprof file in Memory analyser in Eclipse
"Anytime you find yourself writing code of the form "if the object is of type T1, then do something, but if it's of type T2, then do something else," slap yourself.