jconsole本地连接“提示安全连接失败”问题解决

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u013274055/article/details/83055749

今天学习高并发编程时,了解到可以使用jconsole观察线程,但是无法连接,报错截图如下:

经研究学习后得知需要设置jvm启动参数

添加如下参数:

-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=8011
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false

详解:

-Dcom.sun.management.jmxremote 布尔 是否支持远程JMX访问,默认true
-Dcom.sun.management.jmxremote.port 数值 监听端口号,方便远程访问
-Dcom.sun.management.jmxremote.authenticate 布尔 是否需要开启用户认证,默认开启
-Dcom.sun.management.jmxremote.ssl 布尔 是否对连接开启SSL加密,默认开启

猜你喜欢

转载自blog.csdn.net/u013274055/article/details/83055749
今日推荐