【发布时间】:2011-08-17 02:45:56
【问题描述】:
美好的一天!
朋友们,当我运行 SampleTest(here 用 java 编写,模拟死锁环境)时,Jconsole GUI 响应 being connecting to*(参考 SampleTest PID)
如何使用 jconsole 连接应用程序?首先感谢:)
【问题讨论】:
标签: jconsole
美好的一天!
朋友们,当我运行 SampleTest(here 用 java 编写,模拟死锁环境)时,Jconsole GUI 响应 being connecting to*(参考 SampleTest PID)
如何使用 jconsole 连接应用程序?首先感谢:)
【问题讨论】:
标签: jconsole
使用以下 java 属性运行您的应用程序
-Dcom.sun.management.jmxremote.port=9005 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false
这分别提供了 JMX 端口、Do the authentication disable 和 ssl disable。
然后转到您的 jconsole jar 所在的目录。 命令 Jconsole local_or_remote_host:JMX_port 此设置必须让您的 jconsole 连接到应用程序。
【讨论】: