(1)首先要修改JDK中JMX服务的配置文件,以获得相应的权限: 进入$JAVA_HOME所在的根目录的/jre/lib/management子目录下, a. 将jmxremote.password.template文件复制为jmxremote.password b. 调整jmxremote.access和jmxremote.password的权限为只读写,可以使用如下命令 chmod 600 jmxremote.access jmxremote.password c. 打开jmxremote.
https://blogs.oracle.com/jmxetc/ http://stackoverflow.com/questions/1051817/unable-to-connect-to-tomcat-using-visualvm http://blog.markshead.com/1129/connecting-visual-vm-to-tomcat-7/ http://hackers.lookout.com/2014/06/profiling-remote-jvms/ You need
让VisualVM+BTrace进入unsafe mode http://kenai.com/projects/btrace/pages/UserGuide BTrace很强大,但有很多安全限制,比如: --------------------------------------------------------------------------can not create new objects.can not create new arrays.can not throw excepti