I am trying to establish secure jmx connection.
(我正在尝试建立安全的jmx连接。)
The jmx parameters are configured in tomcat and I am testing the connection using jconsole from same VM and another VM. (jmx参数是在tomcat中配置的,我正在使用来自同一台VM和另一台VM的jconsole测试连接。)
Below are the java configuration in tomcat8. (以下是tomcat8中的java配置。)
-Dcom.sun.management.jmxremote=true
-Djava.rmi.server.hostname=IP_address
-Dcom.sun.management.jmxremote.port=port_number
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.registry.ssl=true
-Djavax.net.ssl.keyStore="D:emp2certskeystore.jks"
-Djavax.net.ssl.keyStorePassword=passwrd
-Djavax.net.ssl.trustStore="D:emp2certsruststore.jks"
-Djavax.net.ssl.trustStorePassword=passwrd
From the same or another VM I am using the below jconsole command.
(从相同或另一个VM,我正在使用以下jconsole命令。)
jconsole -J-Djavax.net.ssl.trustStore=D:NPScore_connectjmxclienttruststore.jks -J-Djavax.net.ssl.trustStorePassword=passwrd
But when I try to connect using jconsole I am getting
(但是当我尝试使用jconsole进行连接时)
java.rmi.ConnectIOException: non-JRMP server at remote endpoint
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:248)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202)
at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:342)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at sun.tools.jconsole.ProxyClient.checkSslConfig(ProxyClient.java:234)
at sun.tools.jconsole.ProxyClient.<init>(ProxyClient.java:127)
at sun.tools.jconsole.ProxyClient.getProxyClient(ProxyClient.java:475)
at sun.tools.jconsole.JConsole$3.run(JConsole.java:524)
Can someone please help?
(有人可以帮忙吗?)
ask by Sumith08 translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…