进入win平台jdk1.6以上版本安装目录
打开$JAVA_HOME/bin/jvisualvm.exe软件
编辑权限文件
vim jstatd.all.policy
##内容
grant codebase "file:${java.home}/../lib/tools.jar" {
permission java.security.AllPermission;
};
启动jstatd 服务
nohup $JAVA_HOME/bin/jstatd -J-Djava.rmi.server.hostname=远程的ip -J-Djava.security.policy=jstatd.all.policy -J-Dcom.sun.management.jmxremote.authenticate=false -J-Dcom.sun.management.jmxremote.ssl=false -J-Dcom.sun.management.jmxremote.port=服务端口&