【问题标题】:what exactly the parameters are needed for authentication to Connect JMX agent on windows?身份验证需要哪些参数才能在 Windows 上连接 JMX 代理?
【发布时间】:2021-12-27 17:04:59
【问题描述】:

我测试了以下参数,但只有在 Linux 上我才能让它工作。

-Dcom.sun.management.jmxremote 
-Dcom.sun.management.jmxremote.authenticate=true 
-Dcom.sun.management.jmxremote.port=${startport:9977}
-Dcom.sun.management.jmxremote.ssl=false ` 
com.sun.management.jmxremote.password.file=/opt/.../jre/lib/management/jmxremote.password
com.sun.management.jmxremote.access.file=/opt/.../jre/lib/management/jmxremote.access

但是使用以下参数,在 Windows 上我无法正常工作。

-Dcom.sun.management.jmxremote 
-Dcom.sun.management.jmxremote.authenticate=true 
-Dcom.sun.management.jmxremote.port=${startport:9977} 
-Dcom.sun.management.jmxremote.ssl=false 
-Dcom.sun.management.jmxremote.password.file=C:/.../jre/lib/management/jmxremote.password 
-Dcom.sun.management.jmxremote.access.file=C:/.../jre/lib/management/jmxremote.access

我认为我在提供文件路径时做错了。请帮我解决这个问题。

【问题讨论】:

    标签: java windows jvm jmx jconsole


    【解决方案1】:

    我通过授予 jmxRemote.password 文件的只读访问权限解决了这个问题

    【讨论】:

      猜你喜欢
      • 2016-11-02
      • 1970-01-01
      • 2012-09-04
      • 1970-01-01
      • 2021-10-10
      • 1970-01-01
      • 2017-07-02
      • 2012-04-07
      • 1970-01-01
      相关资源
      最近更新 更多