has been reported to throw OutOfMemoryError (OOM) on large heap dump files. This is a known issue and we are making some improvements to reduce memory requirement. Having said that jhat requires larger memory because it reads entire heap dump and forms in-memory object model. Hence, please use -J-Xmx512MB
(or even -J-Xmx1G
!) with jhat.