Here are output of the test with PrintGCDetails
60.014: [GC (Metadata GC Threshold) [PSYoungGen: 39837K->3072K(669952K)] 40164K->3398K(2016192K), 0.0126180 secs] [Times: user=0.04 sys=0.01, real=0.02 secs]
60.033: [Full GC (Metadata GC Threshold) [PSYoungGen: 3072K->0K(669952K)] [ParOldGen: 326K->326K(1346240K)] 3398K->326K(2016192K), [Metaspace: 28185K->2949K(40688K/126976K)], 0.0333560 secs] [Times: user=0.09 sys=0.00, real=0.04 secs]
Metaspace total 40688K, used 8407K, reserved 126976K
data space 22752K, used 5098K, reserved 24576K
class space 17936K, used 3308K, reserved 102400K
And Native Memory Tracker:
- Class (reserved=30860KB, committed=29240KB)
(classes #26476)
(malloc=6284KB, #980)
(mmap: reserved=24576KB, committed=22956KB)
We can see that count only "data space 24576K=24576K"
Thanks to Mikael Gerdin who proved this suggesstion.
60.014: [GC (Metadata GC Threshold) [PSYoungGen: 39837K->3072K(669952K)] 40164K->3398K(2016192K), 0.0126180 secs] [Times: user=0.04 sys=0.01, real=0.02 secs]
60.033: [Full GC (Metadata GC Threshold) [PSYoungGen: 3072K->0K(669952K)] [ParOldGen: 326K->326K(1346240K)] 3398K->326K(2016192K), [Metaspace: 28185K->2949K(40688K/126976K)], 0.0333560 secs] [Times: user=0.09 sys=0.00, real=0.04 secs]
Metaspace total 40688K, used 8407K, reserved 126976K
data space 22752K, used 5098K, reserved 24576K
class space 17936K, used 3308K, reserved 102400K
And Native Memory Tracker:
- Class (reserved=30860KB, committed=29240KB)
(classes #26476)
(malloc=6284KB, #980)
(mmap: reserved=24576KB, committed=22956KB)
We can see that count only "data space 24576K=24576K"
Thanks to Mikael Gerdin who proved this suggesstion.
- relates to
-
JDK-8323655 Develop test checking NMT and GC logs for being consistent
- Open