Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JConsole command line credentials

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.

Thanks.

like image 668
2DH Avatar asked Jun 14 '11 12:06

2DH


1 Answers

It is not possible with JConsole. The alternative JMX console that enables you to pass username/password from command line is jmxterm.

It can be found here: http://wiki.cyclopsgroup.org/jmxterm

like image 77
Karol Kaliński Avatar answered Oct 07 '22 23:10

Karol Kaliński