public PartitionAttributesFactory<K, V> setLocalMaxMemory(int mb) {
    partitionAttributes.setLocalMaxMemory(mb);
    return this;
  }
Sets the maximum amount of memory, in megabytes, to be used by the region in this process. If
not set, a default of 90% of available heap is used.

@param mb the maximum amount of memory, in megabytes, to be used by the region in this process
@return PartitionAttributeFactory.
geode-core/src/main/java/org/apache/geode/cache/PartitionAttributesFactory.java