Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JMC 7 SOCKS Settings

user13284207Jul 24 2020 — edited Jul 27 2020

I am trying to connect to a remote host via jump host.  I set up a ssh tunnel and also also a ssh dynamic port forwarding.  I was able to connect using regular jconsole.  However, I am not able to connect with JMC7.

Remote jvm is jdk8 with the following jmxremote settings:

    -Dcom.sun.management.jmxremote

    -Dcom.sun.management.jmxremote.authenticate=false

    -Dcom.sun.management.jmxremote.ssl=false

    -Dcom.sun.management.jmxremote.rmi.port=9051

    -Dcom.sun.management.jmxremote.port=9051

1. I set up the definition in Preferences > General > Network Connections.

    a. Active Provider: Manual

    b. SOCKS with Host: localhost  Port: 5555

    c. all other settings are the default under the Manual active provider

2. Created a JVM Connection using the target ip address and the jmx port (which jconsole is able to connect via the dynamic port forwarding)

    - the connection never succeed - it just hang with "Please wait..." and cursor became the spinning wheel and stuck there

Observations:

1. The SOCKS setting is not saved after I exit the program - so could be a bug.

2. With Jconsole, i specify the "Insecure connectIon" - but I don't see this option in JMC7. Could JMC7 keep trying using SSL to connect?

Any help is appreciated.

Regards

Comments
Post Details
Added on Jul 24 2020
1 comment
727 views