Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Remote VisualVM
- ## Start RMI registry
- $ rmiregistry -J-Djava.rmi.server.codebase=file:$JAVA_HOME/lib/tools.jar
- ## Create Policy file for jstatd
- * Create a file named `jstatd.all.policy`
- * With the following contents:
- grant codebase "file:${java.home}/../lib/tools.jar" { permission java.security.AllPermission; };
- ## Start jstatd
- $ jstatd -J-Djava.security.policy=/home/arun/jstatd.all.policy &
- ## Launch VisualVM on the remote host
- $ jvisualvm
- After VisualVM is launched, select `"Remote" > "Add Remote Host.."` and enter the hostname where `jstatd` is running.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement