--- old/src/hotspot/share/services/virtualMemoryTracker.cpp 2018-04-24 07:16:38.777261502 +0200 +++ new/src/hotspot/share/services/virtualMemoryTracker.cpp 2018-04-24 07:16:38.617261514 +0200 @@ -516,7 +516,7 @@ size_t free_in_bytes = (MetaspaceUtils::capacity_bytes(type) - MetaspaceUtils::used_bytes(type)) + MetaspaceUtils::free_chunks_total_bytes(type) - + MetaspaceUtils::free_bytes(type); + + MetaspaceUtils::free_in_vs_bytes(type); mss._free_in_bytes[type] = free_in_bytes; }