There are number of good articles on the subject. One of the good intro articles here.
I've found that I had to run tool with increased memory on Mac in order to open large heaps. To run it on Mac with extended memory (below is 6Gb) execute following command:
open -a mat --args -vmargs -Xmx6GHope it helped someone...