JConsole command line credentials

后端 未结 3 1825
小鲜肉
小鲜肉 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:12

    As far as I know, you can't. From your example though it looks like you are only trying to connect locally to a JMX process. In that case you could simply disable authentication in the JMX process (and make sure it listens for JMX only over localhost). Then you don't need to pass credentials and it will work with jconsole. For a true remote connection though (in which you will definitely want authentication, among other things like encryption), I think you have to try out one of the many other jmx type clients.

提交回复
热议问题