This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//To get Id of object | |
//In VisualVM right click on instance of byte[] and select 'Copy ID' | |
var bytes = heap.findObject(0xe21b95d8); | |
var filePath = "c:/tmp/result.txt" | |
var fos = new java.io.FileOutputStream(filePath); | |
var len = bytes.length | |
for (var i=0; i<len; i++) { | |
fos.write(bytes[i]); | |
} |
- Download from https://www.eclipse.org/mat/downloads.php the OSX distributive http://www.eclipse.org/downloads/download.php?file=/mat/1.8.1/rcp/MemoryAnalyzer-1.8.1.20180910-macosx.cocoa.x86_64.zip
- Unzip the archive to folder (
$OSX_MAT_HOME
) - Open the root folder with binary
$OSX_MAT_HOME/mat.app/Contents/MacOS
12:56:03 MacOS $ ls MemoryAnalyzer MemoryAnalyzer.ini workspace