Skip to content

Instantly share code, notes, and snippets.

@willgarcia
Last active September 7, 2015 19:27
Show Gist options
  • Save willgarcia/31e73a20135c0d1381b8 to your computer and use it in GitHub Desktop.
Save willgarcia/31e73a20135c0d1381b8 to your computer and use it in GitHub Desktop.
visualvm

HOST

brew install Caskroom/cask/visualvm + Add a remote

REMOTE

Policy file jstatd.all.policy content: grant codebase "file:/usr/java/jdk1.7.0_80/lib/tools.jar" { permission java.security.AllPermission; };

/usr/java/jdk1.7.0_80/bin/jstatd -J-Djava.security.policy=./jstatd.all.policy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment