JDK-8215175 : Inconsistencies in JFR event metadata
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jfr
  • Affected Version: 12
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-12-10
  • Updated: 2020-04-27
  • Resolved: 2018-12-13
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 12 JDK 13 Other
11.0.3-oracleFixed 12 b24Fixed 13Fixed openjdk8u262Fixed
Related Reports
Relates :  
Relates :  
Description
There are numerous small inconsistencies in the metadata that describes the JFR events. For example, the event that contains information about the JVM is called "JVM Information", but the event that happens when JVM exits is called "VM Shutdown" instead of "JVM Shutdown".

Sometimes titlecase is not used or fields lack proper units.
Comments
Replacing jdk8u-fix-request with link to JDK-8239140
17-02-2020

RFC: https://mail.openjdk.java.net/pipermail/jdk8u-dev/2020-January/011063.html
30-01-2020

Fix request: This fix shall be backported to OpenJDK 11.0.3 because it is in 11.0.3-oracle. It fixes several issues in JFR. As the patch did not just apply, an RFR discussion was started here: https://mail.openjdk.java.net/pipermail/hotspot-jfr-dev/2019-February/000443.html Fix will only be pushed after jtreg suite shows no regressions
20-02-2019

It was deemed to late to bring enhancements into Oracle JDK 11.0.3, so I only backported the JFR bug fixes for that release. I think we should strive to have OpenJDK and OracleJDK as close to each other as possible. This avoids confusion among users and simplifies things for Mission Control. Maybe the enhancement will be backported in Oracle JDK 11.0.4 or 11.0.5. There have already been a request for that
19-02-2019

Hi Erik, thanks very much for your thoughts on this. Maybe we should also look into backporting the jfr tool to jdk11, what do you think?
18-02-2019

What makes this patch problematic to backport is that the JFR tool enhancment (JDK-8205516) was not backported to JDK 11 It is not obvious what should go in (or not) in the patch. When I did the Oracle backport I made the patch so that the modified enhancement patch (attached to JDK-8205516) will apply cleanly. This will simplify the work later on and keep things in a consistent state untill that happens.
18-02-2019

I'm working on a backport to jdk11u...
18-02-2019

Fix Request: Flight Recorder and Mission Control (not yet released) was open sourced for JDK 11 and use is likely to increase significantly over the next few years. We should take the opportunity to fix these issues in JDK 11 now and avoid the confusion that will arise when a recording from JDK 11 looks different from one in JDK 12+. For example, some JVM events was incorrectly put in the "Java" category instead of the "JVM" category. The quicker we can get rid of these red face issues the better.
07-01-2019