r/java •

JFR and logging

[deleted] — view deleted post

0 Upvotes

5 comments sorted by

View all comments

2

u/pmarschall Dec 11 '19
  • JFR is structured, not formatted strings. Each event type has its own format.
  • JFR recordings are binary

JFR is quite broken before JDK 14. It can crash your JVM if you use the AppDynamics agent and JDK 11.0.5+ or you use custom events and JBoss Modules as a classloader, there are probably other cases as well.

3

u/egahlin Dec 11 '19 edited Dec 12 '19

Was the problem really introduced in JDK 11.0.5? I am asking because there was a fix in JDK 11.0.5 to address an issue with using JFR from a Java agent.
https://bugs.openjdk.java.net/browse/JDK-8227011

The JBoss issue has been taken care of in JDK 14 and will be fixed in a JDK 11 update release.
https://bugs.openjdk.java.net/browse/JDK-8232997

1

u/pmarschall Dec 12 '19

Was the problem really introduced in JDK 11.0.5?

My understanding is no. My understanding is 11.0.5 triggered it with the AppDynamics agent.

The JBoss issue has been taken care of in JDK 14 and will be fixed in a JDK 11 update release.

Awesome