Multiple recordings
Milan Mimica
milan.mimica at gmail.com
Mon Jun 10 14:13:42 UTC 2019
Hello List
I have noticed that when multiple recordings are running concurrently
their events get merged in the dump.
Consider this example. It will print many events other than
ObjectAllocationOutsideTLAB.
public static void main(String[] args) throws Exception {
var rec1 = new Recording(Configuration.getConfiguration("default"));
rec1.start();
var rec2 = new
Recording(Map.of("jdk.ObjectAllocationOutsideTLAB#enabled", "true"));
rec2.start();
Thread.sleep(2000);
var path = new File("dump.jfr").toPath();
rec2.dump(path);
RecordingFile.readAllEvents(path).forEach(System.out::println);
rec1.stop();
rec2.stop();
}
Is this a known limitation?
--
Milan Mimica
More information about the hotspot-jfr-dev
mailing list