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

Matthias Baesken mbaesken at openjdk.org
Tue Jan 30 14:30:32 UTC 2024


On Mon, 29 Jan 2024 15:32:47 GMT, Severin Gehwolf <sgehwolf at openjdk.org> wrote:

> In a containerized environment with some memory limit this could potentially return a large value for `free_swap_space()`, and a small(er) value for `total_swap_space()`. i.e. `total_swap_space() < free_swap_space()`. 

Yes this is what we see in our tests last night (after my change).

>Please return `-1` if the containerized value is not supported. 

okay I can do this.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/17581#discussion_r1471322500


More information about the hotspot-jfr-dev mailing list