Advertisement
Guest User

Untitled

a guest
May 25th, 2015
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. # Remote VisualVM
  2.  
  3. ## Start RMI registry
  4.  
  5. $ rmiregistry -J-Djava.rmi.server.codebase=file:$JAVA_HOME/lib/tools.jar
  6.  
  7. ## Create Policy file for jstatd
  8.  
  9. * Create a file named `jstatd.all.policy`
  10. * With the following contents:
  11.  
  12. grant codebase "file:${java.home}/../lib/tools.jar" { permission java.security.AllPermission; };
  13.  
  14. ## Start jstatd
  15.  
  16. $ jstatd -J-Djava.security.policy=/home/arun/jstatd.all.policy &
  17.  
  18. ## Launch VisualVM on the remote host
  19.  
  20. $ jvisualvm
  21.  
  22. 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