Trace Java memory access.
Build Jmtrace.
./gradlew build fatJar
For Windows users, you can add path\to\jmtrace\bin
to your PATH environment variable. Also, you can add the following config to your PowerShell $PROFILE
file (like .bashrc
in Linux). It will also register the command jmtrace
globally.
Set-Alias -Name jmtrace -Value "path\to\jmtrace\bin\jmtrace.ps1"
For Linux / macOS users, you can append path/to/jmtrace/bin
directory to PATH environment variable in .bashrc
.
$ jmtrace --help
Usage: jmtrace options_list
Arguments:
args -> Args for running jar (optional) { String }
Options:
--jar, -jar -> Input jar package (always required) { String }
--verbose, -v [false] -> Enable verbose Log
--help, -h -> Usage info