On the server where you run your JVM servers, do this:
1. cd into $HOME and create a file named "jstatd.all.policy" with the following:
grant codebase "file:${java.home}/../lib/tools.jar" {
permission java.security.AllPermission;
};
2. Run this command:
jstatd -J-Djava.security.policy=jstatd.all.policy &
3. Now go back to your PC and open a terminal and run the following:
jvisualvm&
4. Inside ViaualVM, add a Remote host of your server and you should see all the JVM that started there.
Here is an example of how it looks like:
No comments:
Post a Comment