Memory analyzer can be used to analyze the state of the RAM usage, which is often used when a memory overflow occurs.
First step: Download Eclipse MAT
: http://www.eclipse.org/mat/downloads.php
The second step: after downloading the compressed package decompression, placed in the MyEclipse myeclipse\myeclipse 10\dropins directory
Create a mat folder where the extracted files are placed
Step three: Restart the myeclipse, when the boot is complete, you can see
Fourth step: Open Window->perferences and you will see this item:
Fifth Step:
Write a little program and test it.
Project Right-click Run configurations.
In the Run Configuration window for argument add-xx:+heapdumponoutofmemoryerror as
Configuration Complete Click "Run" to see the program error
Refresh the project directory to see a java_pid7076.hprof file generated
Double-click Open
MAT Memory Analyzer Tool plug-in installation Myeclipse10