Launching VisualVM on macOS
Things have changed since the last time I ran a JVM memory monitoring tool. VisualVM is now a standalone download, and you need to manually agree to the license. If you double click the application, nothing happens.
So download and install it, and then:
$ /Applications/VisualVM.app/Contents/MacOS/visualvm \
--jdkhome $JAVA_HOME
You can also brew install visualvm.