The G1GC logging is printing Heap occupation values as rounded to MB or GB, is there a way how to print all values in KB or MB?
I want to analyze Allocation and Promotion Rates and this rounding of values introduces imprecision.
For example a GC event below shows total heap occupation being reduced from 11.7G->1826.2M
which shows only a rounded value of 11.7G
for total heap size prior the collection.
4592.204: [GC pause (G1 Evacuation Pause) (young)
[Eden: 9804.0M(9804.0M)->0.0B(9800.0M) Survivors: 112.0M->86.0M
Heap: 11.7G(15.0G)->1826.2M(15.0G)]
...
VM flags used:
-Xms16g -Xmx16g -XX:+UseG1GC -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Xloggc:gc.log
Using Hotspot JVM 1.8.0-b132.