How to quickly open, read and analyze Java *.hprof file
If you need to troubleshoot Java OutOfMemoryError, very often you can set -XX:+HeapDumpOnOutOfMemoryError and obtain a java*.hprof to analysis. See below for two best free tools out there for analyzing *.hprof file.