RFR: JDK-8262163: Extend settings printout in jcmd VM.metaspace
Thomas Stuefe
stuefe at openjdk.java.net
Tue Feb 23 08:01:39 UTC 2021
On Tue, 23 Feb 2021 06:28:13 GMT, Yang Yi <github.com+5010047+kelthuzadx at openjdk.org> wrote:
>> This is quite trivial.
>>
>> jcmd VM.metaspace prints metaspace settings at the end of its printout. Missing from that printout are some settings which would be nice to see here, eg the GC thresholds and CDS settings (nice to know since CDS affects how metaspace is used).
>>
>> Example output:
>>
>> Settings:
>> MaxMetaspaceSize: 17179869184,00 GB
>> CompressedClassSpaceSize: 1,00 GB
>> Initial GC threshold: 20,75 MB
>> Current GC threshold: 21,50 MB
>> CDS: on
>> MetaspaceReclaimPolicy: balanced
>> -------
>> Tests: Manually ran runtime/Metaspace/PrintMetaspaceDcmd.java.
>
> Looks good! IMHO, can we simply reorder these settings? i.e.
>
> Settings:
> AppCDS: on
> Initial GC threshold: 20,75 MB
> Current GC threshold: 21,50 MB
> MaxMetaspaceSize: 17179869184,00 GB
> MetaspaceReclaimPolicy: balanced
> CompressedClassSpaceSize: 1,00 GB
Hi Yang,
> Looks good! IMHO, can we simply reorder these settings? i.e.
>
> Settings:
> AppCDS: on
> Initial GC threshold: 20,75 MB
> Current GC threshold: 21,50 MB
> MaxMetaspaceSize: 17179869184,00 GB
> MetaspaceReclaimPolicy: balanced
> CompressedClassSpaceSize: 1,00 GB
Sure, I can reorder that, but on what base? Alphabetically?
..Thomas
-------------
PR: https://git.openjdk.java.net/jdk/pull/2686
More information about the hotspot-runtime-dev
mailing list