JMX password read access issue

前端 未结 1 1383
天涯浪人
天涯浪人 2021-02-02 07:28

When I try to use JMX to monitor an application like this:

java -Dcom.sun.management.jmxremote.port=9999 \\
     -Dcom.sun.management.jmxremote.authenticate=fals         


        
1条回答
  •  抹茶落季
    2021-02-02 07:52

    Make sure the user you are using to run the java process have access to the file (owner/read permissions).

    Try:

    chmod 600 jmxremote.password
    

    Plus I suggest you'll make your own password file and run it with

    -Dcom.sun.management.jmxremote.password.file=pwFilePath
    

    All explained here.

    0 讨论(0)
提交回复
热议问题