被监视的服务器上
下面的文字存为 jstatd.all.policy
grant codebase "file:${java.home}/../lib/tools.jar" {
permission java.security.AllPermission;
};
并运行
jstatd -J-Djava.security.policy=jstatd.all.policy
客户机上跑visualvm,默认RMI端口 1099
http://www.codefactorycr.com/java-visualvm-to-profile-a-remote-server.html
http://topinking.iteye.com/blog/474835
下面的文字存为 jstatd.all.policy
grant codebase "file:${java.home}/../lib/tools.jar" {
permission java.security.AllPermission;
};
并运行
jstatd -J-Djava.security.policy=jstatd.all.policy
客户机上跑visualvm,默认RMI端口 1099
http://www.codefactorycr.com/java-visualvm-to-profile-a-remote-server.html
http://topinking.iteye.com/blog/474835