RFR: 8203359: Container level resources events [v10]

Jaroslav Bachorik jbachorik at openjdk.java.net
Thu Apr 22 16:00:32 UTC 2021

> With this change it becomes possible to surface various cgroup level metrics (available via `jdk.internal.platform.Metrics`) as JFR events.
> Only a subset of the metrics exposed by `jdk.internal.platform.Metrics` is turned into JFR events to start with.
> * CPU related metrics
> * Memory related metrics
> * I/O related metrics
> For each of those subsystems a configuration data will be emitted as well. The initial proposal is to emit the configuration data events at least once per chunk and the metrics values at 30 seconds interval. 
> By using these values the emitted events seem to contain useful information without increasing overhead (the metrics values are read from `/proc` filesystem so that should not be done too frequently).

Jaroslav Bachorik has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains 13 additional commits since the last revision:

 - Prevent event container bytecode generation if no container present
 - Fix event metadata
 - Roll back conditional registration of container events
 - Remove container events flag
 - Remove trailing spaces
 - Doh
 - Report container type and register events conditionally
 - Remove unused test files
 - Initial test support for JFR container events
 - Update the JFR control files
 - ... and 3 more: https://git.openjdk.java.net/jdk/compare/7babcb00...04c3f092


  - all: https://git.openjdk.java.net/jdk/pull/3126/files
  - new: https://git.openjdk.java.net/jdk/pull/3126/files/f766faf0..04c3f092

 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=3126&range=09
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=3126&range=08-09

  Stats: 36024 lines in 1257 files changed: 5443 ins; 26264 del; 4317 mod
  Patch: https://git.openjdk.java.net/jdk/pull/3126.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/3126/head:pull/3126

PR: https://git.openjdk.java.net/jdk/pull/3126

More information about the core-libs-dev mailing list