关于jconsole连接的问题

发布于 2024-11-30 02:44:27 字数 263 浏览 6 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

国粹 2024-12-07 02:44:27

使用以下 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文