RFR: JDK-8324287: Record total and free swap space in JFR [v7]

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


On Wed, 31 Jan 2024 11:48:05 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.
>
> Matthias Baesken has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Adjust test

Thanks for the reviews!
The container related free swap space could be addressed in a follow-up.

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

PR Comment: https://git.openjdk.org/jdk/pull/17581#issuecomment-1921256576


More information about the hotspot-jfr-dev mailing list