public boolean removeMonitor(StatisticsMonitor monitor) {
    synchronized (this) {
      boolean removed = false;
      if (monitors.contains(monitor)) {
        removed = monitors.remove(monitor);
      }
      if (monitors.isEmpty()) {
        stopNotifier_IfEnabledAndRunning();
      }
      return removed;
    }
  }
Removes a monitor that will no longer be used
geode-core/src/main/java/org/apache/geode/internal/statistics/StatMonitorHandler.java