Any idea why max = -1(-1K) in G1GC
Sundara Mohan M
email.sundarms at gmail.com
Tue Jun 27 19:44:51 UTC 2017
When i try to get pool.getUsage() and print it i am getting
G1 Eden Space
init = 27262976(26624K) used = 0(0K) committed = 0(0K) max = -1(-1K)
G1 Survivor Space
init = 0(0K) used = 0(0K) committed = 0(0K) max = -1(-1K)
G1 Old Gen
init = 241172480(235520K) used = 0(0K) committed = 0(0K) max =
524288000(512000K)
With ConcMarkSweepGC
Par Eden Space
init = 71630848(69952K) used = 0(0K) committed = 0(0K) max = 139853824(136576K)
Par Survivor Space
init = 8912896(8704K) used = 0(0K) committed = 0(0K) max = 17432576(17024K)
CMS Old Gen
init = 178978816(174784K) used = 0(0K) committed = 0(0K) max =
349569024(341376K)
code
for (MemoryPoolMXBean pool : ManagementFactory.getMemoryPoolMXBeans()) {
System.out.println(pool.getUsage())
}
Thanks,
Sundar
More information about the hotspot-gc-dev
mailing list