Integrated: JDK-8324287: Record total and free swap space in JFR

Matthias Baesken mbaesken at openjdk.org
Thu Feb 1 12:53:10 UTC 2024


On Fri, 26 Jan 2024 07:54:22 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

> Total and free swap space should be recorded in JFR, because it is important to know e.g. in case of memory shortages.
> 
> Currently we only have a container related event (ContainerMemoryUsage) that provides some info but no general event.
> PhysicalMemory could be enhanced or a new event added.
> 
> There is already some coding (see Java_com_sun_management_internal_OperatingSystemImpl_getTotalSwapSpaceSize0 and
> Java_com_sun_management_internal_OperatingSystemImpl_getFreeSwapSpaceSize0) for the swap space info retrieval.

This pull request has now been integrated.

Changeset: cab74b07
Author:    Matthias Baesken <mbaesken at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/cab74b075e4572529a21bf8ac652ec2f1ab4fcaf
Stats:     178 lines in 11 files changed: 177 ins; 0 del; 1 mod

8324287: Record total and free swap space in JFR

Reviewed-by: jbechberger, lucy, egahlin

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

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


More information about the hotspot-jfr-dev mailing list