JConsole command line credentials

后端 未结 3 1827
小鲜肉
小鲜肉 2021-01-04 01:28

Is it possible to pass credentials for monitored resource to JConsole while starting it via command line. I\'ve got the command like that right now.

${jdk.ho         


        
3条回答
  •  礼貌的吻别
    2021-01-04 02:13

    I don't think there is a command line access option to do this. It's a sensible approach since it would reveal credentials in the process signature which might be visible to others.

    However, you can specify a password file using the system property com.sun.management.jmxremote.password.file.

    These options are documented here.

提交回复
热议问题