JDK-8262902 : Release Note: New jdk.ObjectAllocationSample Event Enabled by Default
  • Type: Sub-task
  • Component: hotspot
  • Sub-Component: jfr
  • Affected Version: 16
  • Priority: P3
  • Status: Closed
  • Resolution: Delivered
  • Submitted: 2021-03-02
  • Updated: 2021-12-02
  • Resolved: 2021-03-11
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 16
16Resolved
Description
A new JFR event, `jdk.ObjectAllocationSample`, is introduced to allow always-on, low-overhead allocation profiling. The event is enabled in both the `default` and `profile` configurations, with a maximum rate of 150 and 300 events/s, respectively. Events `jdk.ObjectAllocationInNewTLAB` and `jdk.ObjectAllocationOutsideTLAB` also detail memory allocations, but have comparatively higher overhead. They were previously disabled in the `default` configuration but are now also disabled in the `profile` configuration to reduce the overhead further.

The impact of this change can be seen in JDK Mission Control (JMC) 8.0, or earlier releases, where the 'TLAB Allocations' page will be missing data. The recommendation is to upgrade to a later version of JMC when the `jdk.ObjectAllocationSample` support is available. Meanwhile, it is possible to enable the `jdk.ObjectAllocationInNewTLAB` and `jdk.ObjectAllocationOutsideTLAB` events in the JMC recording wizard, or edit the .jfc file manually.