Skip to content

Instantly share code, notes, and snippets.

@lennartkoopmann
Created October 23, 2012 12:14
Show Gist options
  • Select an option

  • Save lennartkoopmann/3938434 to your computer and use it in GitHub Desktop.

Select an option

Save lennartkoopmann/3938434 to your computer and use it in GitHub Desktop.
step by step jstatd explanation
STEP ONE:
write this to a file called jstatd.all.policy:
grant codebase "file:${java.home}/../lib/tools.jar" {
permission java.security.AllPermission;
};
STEP TWO:
jstatd -J-Djava.security.policy=jstatd.all.policy
STEP THREE:
connect visualvm to the host you started jstatd on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment