开发者

A question about connection in jconsole

开发者 https://www.devze.com 2023-03-29 02:35 出处:网络
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 P开发者_StackOver

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 P开发者_StackOverflowID) How can I use the jconsole to connect the application? thanks first:)


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消