JMC with Static Portable JRE 11
Jie Kang
jkang at redhat.com
Wed Nov 20 18:16:50 UTC 2019
Hey Alex, Mario,
I just wanted to give a quick status update to clarify that I am going
to get to the bottom of this.
I tried to run JMC with the static JRE 11 build on Linux and got the
same issue with being unable to see JVMs on the system. JMC on launch
warns:
WARNING: Unknown module: jdk.management.agent specified to --add-exports
WARNING: Unknown module: jdk.attach specified to --add-exports
WARNING: Unknown module: jdk.internal.jvmstat specified to --add-exports
WARNING: Unknown module: jdk.attach specified to --add-opens
I am assuming these are needed for the JVM discovery mechanism. I will
see how the static builds are made in openjdk. Maybe there's an
alternative API that the JRE 11+ provides that JMC can use instead?
Otherwise we can conclude that JMC will not have discovery capability
with JRE 11, similar to before modules were introduced. In this
situation it can still be used with JRE to open and analyze JFR files
on disk.
Regards,
Jie Kang
More information about the jmc-dev
mailing list