Friday, February 18, 2011

Java memory analysis (OutOfMemoryError for example) tools

Just wanted to share the memory analysis tool that i happened to use recently when i hit an out of memory error in our application.. so far the experience has been good..

Memory analysis tool
(available as standalone tool or as eclipse plugin)

Tutorial on using MAT

Sun vs IBM JDK
Sun JDK generates heap dumps as .hprof files that are supported out of the box by MAT. 
If you are using IBM JDK then it generates .phd files that are not supported by MAT by default (atleast at time of this writing). 
But it can be resolved by installing IBM Diagnostic tool Framework. For more details and for download link, see

No comments:

Post a Comment