RFR: 8330677: Add Per-Compilation memory usage to JFR
Thomas Stuefe
stuefe at openjdk.org
Sun Apr 21 06:56:15 UTC 2024
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 know 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) ).

-------------
Commit messages:
- JDK-8330677-Add-Per-Compilation-memory-usage-to-JFR
Changes: https://git.openjdk.org/jdk/pull/18864/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18864&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8330677
Stats: 22 lines in 7 files changed: 16 ins; 0 del; 6 mod
Patch: https://git.openjdk.org/jdk/pull/18864.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/18864/head:pull/18864
PR: https://git.openjdk.org/jdk/pull/18864
More information about the hotspot-dev
mailing list