JConsole命令行凭据 [英] JConsole command line credentials
问题描述
可以通过命令行启动时,将受监视资源的凭据传递给JConsole。我现在有了这样的命令。
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.home}/bin/jconsole.exe
-J-Djava.class.path=${jdk.home}/lib/jconsole.jar;
${jdk.home}/lib/tools.jar;${weblogic.home}/server/lib/wljmxclient.jar
-J-Djmx.remote.protocol.provider.pkgs=weblogic.management.remote
service:jmx:iiop://127.0.0.1:7510/jndi/weblogic.management.mbeanservers.runtime
有人知道这是否可能,以及这些凭证应放在哪里。
Does anyone know if that's possible and where should those credentials be placed.
谢谢。
推荐答案
我不认为有一个命令行访问选项来做到这一点。这是一个明智的方法,因为它会在进程签名中显示其他人可以看到的凭据。
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.
但是,您可以使用系统属性 com.sun.management.jmxremote.password.file 。
However, you can specify a password file using the system property com.sun.management.jmxremote.password.file.
这些选项已记录在此处。
这篇关于JConsole命令行凭据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!