Integrated: 8330677: Add Per-Compilation memory usage to JFR
Thomas Stuefe
stuefe at openjdk.org
Mon Apr 29 11:01:15 UTC 2024
On Fri, 19 Apr 2024 13:12:21 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:
> We have the (opt-in, disabled by default) compiler memory statistics introduced with [JDK-8317683](https://bugs.openjdk.org/browse/JDK-8317683).
>
> Since temporary memory usage by compilers can significantly affect process footprint, it would make sense to expose at least the total peak usage per compilation via JFR.
>
> ---
>
> This patch adds "Arena Usage" to CompilationEvent. We now see in JMC how costly a compilation had been. (The cost can get very high, as we have seen just recently again with [JDK-8327247](https://bugs.openjdk.org/browse/JDK-8327247) ).
>
> ![jmc-memstat](https://github.com/openjdk/jdk/assets/6041414/8cac366a-2a8f-45ca-be40-d419712f81a7)
This pull request has now been integrated.
Changeset: 151ef5d4
Author: Thomas Stuefe <stuefe at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/151ef5d4d261c9fc740d3ccd64a70d3b9ccc1ab5
Stats: 30 lines in 8 files changed: 18 ins; 0 del; 12 mod
8330677: Add Per-Compilation memory usage to JFR
Reviewed-by: kvn, mbaesken
-------------
PR: https://git.openjdk.org/jdk/pull/18864
More information about the hotspot-compiler-dev
mailing list