Skip to content

Instantly share code, notes, and snippets.

@dgroup
Last active May 31, 2023 17:19
Show Gist options
  • Save dgroup/d03db2eb29143f2dc6444d9f808d695e to your computer and use it in GitHub Desktop.
Save dgroup/d03db2eb29143f2dc6444d9f808d695e to your computer and use it in GitHub Desktop.
Steps to configure the MAT on macOS (osx)
  1. 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
  2. Unzip the archive to folder ($OSX_MAT_HOME)
  3. Open the root folder with binary $OSX_MAT_HOME/mat.app/Contents/MacOS
    12:56:03 MacOS $ ls
    MemoryAnalyzer		MemoryAnalyzer.ini	workspace
  4. Create a new osx alias to start the MAT with custom VM options
    12:56:05 MacOS $ vim ~/.bash_profile
    ...
    alias mat="${OSX_MAT_HOME}/mat.app/Contents/MacOS/MemoryAnalyzer -vmargs -Xmx7g -XX:-UseGCOverheadLimit"
    ...
    exit and save the file, after that reload the bash_profile using
    source ~/.bash_profile 
  5. Open terminal, type mat, press enter.
  6. Install MAT calcite plugin.

Read more:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment