<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>Hi,<br></div><div><br></div><div>I've run into a strange issue with JFR recordings on Java 21 when taking multiple JFR recordings.<br>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.<br></div><div><div>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).</div><div><div>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.<br></div><div><a href="https://github.com/carterkozak/periodic-event-repro/blob/develop/src/main/java/net/ckozak/repro/Main.java">https://github.com/carterkozak/periodic-event-repro/blob/develop/src/main/java/net/ckozak/repro/Main.java</a><br><br>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.<br><br></div></div><div class="signature">Best,<br></div><div class="signature">Carter Kozak<br></div></div></body></html>