 <p>Probably the easiest is getting a heap dump by VisualVM. JDK also includes related tools, as the <a href="http://java.sun.com/javase/6/docs/technotes/tools/share/jmap.html" rel="nofollow noreferrer">jmap tool</a>.</p>