[jdk18] RFR: 8277919: OldObjectSample event causing bloat in the class constant pool in JFR recording

Jaroslav Bachorik jbachorik at openjdk.java.net
Tue Dec 14 11:27:21 UTC 2021


On Mon, 13 Dec 2021 16:25:27 GMT, Markus Grönlund <mgronlun at openjdk.org> wrote:

> Greetings,
> 
> Allocation heavy applications with OldObjectSample with stacktraces enabled will end up storing many duplicates of the same klass artefact, creating a considerable bloat in the class area of the recording constant pool. This is because of JDK-8233705, which can lead to multiple klass entries enqueued via the load barrier, in combination with an insufficient filter mechanism for the leak profiler artefacts. Leak profiler artefacts range over the entire set of artefacts enqueued in the previous epoch. Careful selection of clearing leakp bits for classes becomes a sufficient filtering mechanism similar to the one used for regular artefacts to avoid duplicates.
> 
> Thanks to @jbachorik for reporting and doing the initial analysis.
> 
> Markus

Marked as reviewed by jbachorik (Reviewer).

-------------

PR: https://git.openjdk.java.net/jdk18/pull/15


More information about the hotspot-jfr-dev mailing list