public long getUsedMemory() {
    return usedMemory;
  }
Returns the current number of megabytes of memory being used.

@return the current number of megabytes of memory being used
geode-core/src/main/java/org/apache/geode/management/JVMMetrics.java