A question about connection in 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 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.
精彩评论