0

Why is MC greater than mu when I use the jstat command?, eg.

$./jstat -gc 2820
 S0C    S1C    S0U    S1U      EC       EU        OC         OU       MC     MU    CCSC   CCSU   YGC     YGCT    FGC    FGCT     GCT
174720.0 174720.0  0.0   64633.5 1747712.0 1449365.0 2097152.0   263408.2  304768.0 299380.5 37760.0 36489.7     13    1.766   0      0.000    1.766

enter image description here

It says that MC is 304768.0 while MU is 299380.5.

joy
  • 29
  • 4
  • Why is this surprising you? Have you checked the documentation to understand what `MC` and `MU` means? This observation sounds very straightforward and totally normal to me. – Zabuzard Jan 22 '21 at 09:00

2 Answers2

2

The documentation says that

  • MC: Metaspace capacity (kB).
  • MU: Metacspace utilization (kB).

So MC is the total capacity and MU is how much of MC you are currently using. Hence it only makes sense that MC is greater (equals) MU.

The opposite would be weird, but not MC > MU.


In your case you have a metaspace capacity of around 304 MB and currently use 299 MB of that.

Zabuzard
  • 25,064
  • 8
  • 58
  • 82
0
  1. MC is Metaspace size
  2. MU is Metaspace used size
kui.z
  • 74
  • 2