Skip to Main Content

Java SE (Java Platform, Standard Edition)

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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

JMX first Connection take more time in JAVA 17 than JAVA8

1299240May 8 2024

Hello JAVA Experts,

After upgrading JAVA8 to JAVA 17, We got one problem, an existing JMX client to invoke an get operation always timeout after the Server side VM is fresh installed. the connection timeout we set is 2 seconds, but the first time jmx connection always timeout, then if we run the same connection again, it passed with less than 1 seconds.

We enabled jdk.tls.client.protocols=TLSv1.2 and also set the same cipher suite for jmx agent.

the following is the client side when setup the jmx connection.

-Djdk.tls.client.protocols=TLSv1.2 \
-Djdk.tls.client.cipherSuites=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 \
-Djavax.net.ssl.trustStore=### \
-Djavax.net.ssl.trustStorePassword=### \
-Djavax.net.ssl.keyStore=###\
-Djavax.net.ssl.keyStorePassword=### \

Any idea for this issue?

Thanks in advance,

Eric.

Comments

Processing

Post Details

Added on May 8 2024
0 comments
388 views