private int doConsumeOffHeapMemoryOnVm(final VM vm, final int allocationSize) {
    return vm.invoke(() -> doConsumeOffHeapMemory(allocationSize));
  }
Consumes off off-heap memory until the allocation size cannot be satisfied.

@param vm a virtual machine
@param allocationSize the number of bytes for each allocation

@return the number of successful puts
geode-core/src/distributedTest/java/org/apache/geode/management/OffHeapManagementDUnitTest.java