JVM: uses jstat to find that the utilization rate of metaspace and compressed space is more than 95%. Is there a problem?

is shown below: both the meta-space utilization M and the compressed space utilization CCS are above 95%. What does this mean? Is there a problem?
the number of full gc is small, only a few times in many days

[root@localhost eversec]-sharp cat temp
S0 S1 E O M CCS YGC YGCT FGC FGCT GCT
0.00 4.87 66.80 0.54 97.97 96.68 7 0.262 2 0.282 0.544
0.00 4.87 66.80 0.54 97.97 96.68 7 0.262 2 0.282 0.544
4.87 66.80 0.54 97.97 96.68 7 0.262 2 0.282
0.00 4.87 66.80 0.54 97.97 4.87 7 0.262 2 0.282 0.544
0.00 4.87 66.80 0.54 97.97 96.68 7 0.262 2 0.282 0.544
0.004.87 66. 80 0.54 97.97 97.68 7 0.262 2 0.282
0.004.87 66.80 0.54 97.97 96.68 7 0.262 2 0.282 0.544
0.00 4.87 66.80 0.54 97.97 97.68 7 0.262 2 0.282 0.544
0.004.87 66.80 0.282 0.544 .97 96.68 7 0.262 2 0.282 0.544
0.00 4.87 66.80 0.54 97.97 96.68 7 0.262 2 0.282 0.544
0.00 4.87 66.80 0.54 97.97 96.68 7 0.262 2 0.282 0.544

Nov.29,2021

how often does the FGC happen twice?

in terms of this log, FGC occurs twice, and the collection of MetaSpace is usually accompanied by fullGC . You can observe whether MetaSpace decreases when FGC occurs.


how much metadata space is there? How much did you use?
it doesn't matter if the metadata space utilization is high, because unless you use something that dynamically generates classes at run time (such as groovy),), the metadata space is very stable, and high utilization can save some memory

.
Menu