If you find yourself trying to analyze a big heap dump (20-30GB) downloaded from your production server to your staging/test machines.. only to find out that X-over-SSH is too slow then this article is for you.
As of Nov 2013, we have 2 options - Eclipse MAT and a hidden gem called Bheapsampler.
Option 1:
Eclipse Memory Analyzer is obviously the best tool for this job. However, trying to get the UI to run remotely is very painful. Launching Eclipse and updating the UI is an extra load on the JVM that is already busy analyzing a 30G heap dump. Fortunately, there is a script that comes with MAT to parse the the heap dump and generate HTML reports without ever having to launch Eclipse! It's just that the command line option is not well advertised.
Read full article from Ashwin Jayaprakash's Blog: Analyzing large Java heap dumps when Eclipse Memory Analyzer (MAT) UI fails
No comments:
Post a Comment