Integrated: 8157023: Integrate NMT with JFR

Stefan Johansson sjohanss at openjdk.org
Wed Dec 7 18:48:01 UTC 2022


On Thu, 1 Dec 2022 10:48:51 GMT, Stefan Johansson <sjohanss at openjdk.org> wrote:

> Please review this enhancement to include NMT information in JFR recordings.
> 
> **Summary**
> Native Memory Tracking summary information can be obtained from a running VM using `jcmd` if started with `-XX:NativeMemoryTracking=summary/detail`. Using `jcmd` requires you to run a separate process and to parse the output to get the needed information. This change adds JFR events for NMT information to enable additional ways to consume the NMT data.
> 
> There are two new events added:
> * _NativeMemoryUsage_ - The total native memory usage.
> * _NativeMemoryUsagePart_ - The native memory usage for each component.
> 
> These events are sent periodically and by default the interval is 1s. This can of course be discussed, but that is the staring point. When NMT is not enabled on events will be sent.
> 
> **Testing**
> * Added a simple test to verify that the events are sent as expected depending on if NMT is enabled or not.
> * Mach5 sanity testing

This pull request has now been integrated.

Changeset: 3b8c7ef8
Author:    Stefan Johansson <sjohanss at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/3b8c7ef8e705764942c4f3df872e3e47021a37f4
Stats:     587 lines in 14 files changed: 579 ins; 5 del; 3 mod

8157023: Integrate NMT with JFR

Reviewed-by: stuefe, mgronlun, egahlin

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

PR: https://git.openjdk.org/jdk/pull/11449


More information about the hotspot-dev mailing list