JFR Recordings Missing Periodic Events

Carter Kozak ckozak at ckozak.net
Thu Dec 14 17:43:09 UTC 2023


I've run into a strange issue with JFR recordings on Java 21 when taking multiple JFR recordings.
The first recording works as expected. If I do not immediately start the next recording, periodic JFR events are no longer produced. Events based on actions still appear (e.g. virtual thread pinning), but periodic events are missing.
I cannot reproduce this issue on Java 17, but it does seem to be 100% reproducible on Java 21 (including a 21.0.1+12 fastdebug build).
I've created a minimal reproducer here with github-actions executing the main method using both jdk-17 and jdk-21 to illustrate the failure.

I haven't had a chance to dig into the root cause quite yet, but figured I'd share for awareness in case folks have ideas.

Carter Kozak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/hotspot-jfr-dev/attachments/20231214/5b4a8e89/attachment-0001.htm>

More information about the hotspot-jfr-dev mailing list