Search code examples
javacorretto

Enable JMX port Amazon Java cerretto


I am trying to enable jmx port on amazon corretto (amazon-corretto-11.0.5.10.1-linux-x64). MyJVM has the following JVM arguments

"-Dcom.sun.management.jmxremote=true"
 "-Dcom.sun.management.jmxremote.port=9971" 
"-Dcom.sun.management.jmxremote.authenticate=false" 
"-Dcom.sun.management.jmxremote.ssl=false"'

But when i try to launch jvisual VM it says "Not supported for this JVM". Any suggestions how can I enable jmx port for this jvm. the same arguments work for java 8 jvms.


Solution

  • JMX is supported in the latest Corretto, and you'll need to upgrade to 11.0.10.

    bin/java -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.port=9971 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -version openjdk version "11.0.10" 2021-01-19 LTS OpenJDK Runtime Environment Corretto-11.0.10.9.1 (build 11.0.10+9-LTS) OpenJDK 64-Bit Server VM Corretto-11.0.10.9.1 (build 11.0.10+9-LTS, mixed mode)