Last active
April 26, 2016 04:39
-
-
Save uarun/e4577c2c1137ec7dbc05 to your computer and use it in GitHub Desktop.
Revisions
-
uarun revised this gist
Apr 15, 2015 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ ## Start RMI registry $ rmiregistry -J-Djava.rmi.server.codebase=file:$JAVA_HOME/lib/tools.jar ## Create Policy file for jstatd @@ -13,10 +13,10 @@ ## 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. -
uarun revised this gist
Apr 15, 2015 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ ## Start RMI registry $ $JAVA_HOME/bin/rmiregistry -J-Djava.rmi.server.codebase=file:$JAVA_HOME/lib/tools.jar ## Create Policy file for jstatd @@ -13,10 +13,10 @@ ## Start jstatd $ $JAVA_HOME/bin/jstatd -J-Djava.security.policy=/home/arun/jstatd.all.policy ## Launch VisualVM on the remote host $ $JAVA_HOME/bin/jvisualvm After VisualVM is launched, select `"Remote" > "Add Remote Host.."` and enter the hostname where `jstatd` is running. -
uarun revised this gist
Apr 15, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -9,7 +9,7 @@ * 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 -
uarun created this gist
Apr 15, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,22 @@ # 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.