参考 : http://java.sun.com/j2se/1.5.0/docs/guide/management/faq.html#win1
方法一:
1. 确保你的文件系统为 NTFS。
2. 把 %TMP% 打开,把 hsperfdata_ 的后缀改为你的用户名,大小写要一致。
方法二:
启动JVM时加上
-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=空闲端口号 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false
用jconsole连接时指定localhost:8011