As described in JDK-8147976 the way G1 now logs the used memory for eden, survivor, old and humongous can be confusing. It does not necessarily add up to the same value as the overall heap usage.
Instead log the number of regions each space is using. This should reduce the confusion. At trace level the exact usage can be logged.
Instead log the number of regions each space is using. This should reduce the confusion. At trace level the exact usage can be logged.