-
New Feature
-
Resolution: Unresolved
-
P2
-
None
-
None
We should probably streamline the JDK version independent JFR JMX service and make it part of core, so that it can be used by anyone interested in a platform independent way of controlling the FlightRecorder. As a matter of fact, it should probably be two factories for acquiring the service, one taking an MBeanServer, and one not taking anything at all. The one not taking anything at all would fallback to the platformMBeanServer if JDK < 9, and the ones for JDK 9 and above would simply reflectively use the local API.
For now, we could simply make a very simple service that will use diagnostic commands internally, and which only supports our exact use cases.