RFR: JDK-8260571: Add PrintMetaspaceStatistics to print metaspace statistics upon VM exit
Coleen Phillimore
coleenp at openjdk.java.net
Mon Feb 1 20:52:40 UTC 2021
On Thu, 28 Jan 2021 10:20:42 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:
> This patch adds a new diagnostic boolean switch `PrintMetaspaceStatistics`. When set, it will cause the VM to print a brief report about metaspace occupancy when exiting. It follows the same logic as `PrintNMTStatistics` and similar switches.
Looks good to me.
src/hotspot/share/runtime/globals.hpp line 1487:
> 1485: "options: balanced, aggressive, none") \
> 1486: \
> 1487: product(bool, PrintMetaspaceStatistics, false, DIAGNOSTIC, \
Can you call this PrintMetaspaceStatisticsAtExit to be like the other ones?
-------------
PR: https://git.openjdk.java.net/jdk/pull/2283
More information about the hotspot-runtime-dev
mailing list