Using the heap dump we can find details like the memory usage per class, number of objects per class, etc. Analyzing the heap dump will lead us to the root cause of the anomaly. You may need to take the Heap dump if your Java application is taking up more memory than you expected or your Java application crashed with OutOfMemoryError. Why and When should I take the Heap dump? In this post, we will see how you can take the heap dump of your running Java application and use Eclipse’s Memory Analyzer (MAT) to identify memory hotspots and possibility detect memory leak. The heap dump file is usually stored with. Heap dump analysis using Eclipse Memory Analyzer Tool (MAT)Ī heap dump is a snapshot of all the Java objects that exist in the heap space.
0 Comments
Leave a Reply. |