Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save laszlomiklosik/2594418 to your computer and use it in GitHub Desktop.
Save laszlomiklosik/2594418 to your computer and use it in GitHub Desktop.
Using JSTATD deamon with VisualVM for remote profiling
1. create tools.policy file:
grant {
permission java.security.AllPermission;
};
2. run to start jstatd:
jstatd -J-Djava.security.policy=tools.policy
3. check which port is run by jstatd:
lsof -i
useful article:
http://hillert.blogspot.com/2010/01/remote-profiling-of-jboss-using.html
http://stackoverflow.com/questions/7424519/using-visualvm-to-connect-to-a-remote-jstatd-instance-through-a-firewall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment