`
yanghuidang
  • 浏览: 911712 次
  • 性别: Icon_minigender_1
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论

jvisualvm监控jboss

 
阅读更多
  1. 用jvisual远程监控jvm的内存。
  2. 步骤1:在Linux服务器端建立文件:jstatd.all.policy,
  3. 文件内容为:
  4. grantcodebase"file:${java.home}/../lib/tools.jar"{
  5. permissionjava.security.AllPermission;
  6. };
  7. 步骤2:启动jstat服务
  8. jstatd-J-Djava.rmi.server.hostname=10.10.16.222-J-Djava.security.policy=/usr/java/jdk1.6.0_27/jstatd.all.policy-J-Dcom.sun.management.jmxremote.port=1209 -J-Dcom.sun.management.jmxremote.ssl=false-J-Dcom.sun.management.jmxremote.authenticate=false
  9. 最好后台启动该服务,使用如下方式:
  10. nohupjstatd-J-Djava.rmi.server.hostname=10.10.16.222-J-Djava.security.policy=/usr/java/jdk1.6.0_27/jstatd.all.policy-J-Dcom.sun.management.jmxremote.port=1209 -J-Dcom.sun.management.jmxremote.ssl=false-J-Dcom.sun.management.jmxremote.authenticate=false&
  11. Djava.rmi.server.hostname为本机的ip地址,
  12. Djava.security.policy为步骤1创建文件的路径,
  13. Dcom.sun.management.jmxremote.port为jmx的端口
  14. 步骤3:在客户端启动jvisualvm.exe即可。
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics