private void initMemoryPools() {
    List<MemoryPoolMXBean> l = ManagementFactory.getMemoryPoolMXBeans();
    for (MemoryPoolMXBean item : l) {
      if (item.isValid() && !mpMap.containsKey(item)) {
        mpMap.put(item,
            f.createStatistics(mpType, item.getName() + '-' + item.getType(), id));
      }
    }
  }
Remember that the given bean does not support collection usage.
geode-core/src/main/java/org/apache/geode/internal/stats50/VMStats50.java