关于jconsole连接的问题
再会!
朋友们,当我运行 SampleTest 时(由 此处用 java 编写,模拟死锁环境),正在连接到
的Jconsole GUI响应*(参考SampleTest PID) 如何使用 jconsole 连接应用程序?先谢谢了:)
Good Day!
Friends, when I am runing a SampleTest (written in java by here, simulating a deadlock environmentn), Jconsole GUI response that being connecting to
* (refer to SampleTest PID)
How can I use the jconsole to connect the application? thanks first:)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用以下 java 属性运行应用程序
-Dcom.sun.management.jmxremote.port=9005
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
这分别提供 JMX 端口、身份验证禁用和 ssl 禁用。
然后转到 jconsole jar 所在的目录。
命令
Jconsole local_or_remote_host:JMX_port
此设置必须让您的 jconsole 连接到应用程序。
Run your application with following java properties
-Dcom.sun.management.jmxremote.port=9005
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
This provide the JMX port , Do the authentication disable , and ssl disable respectively.
Then go to directory where your jconsole jar resides.
command
Jconsole local_or_remote_host:JMX_port
This setting must let your jconsole to connect to the application.