Below is one example of analyzing heap dump to know which objects are responsible for JVM out of memory.