public void updateStateAndSendEvent() {
    updateStateAndSendEvent(
        testBytesUsedForThresholdSet != -1 ? testBytesUsedForThresholdSet : getBytesUsed(),
        "notification");
  }
Compare the number of bytes used (fetched from the JVM) to the thresholds. If necessary, change
the state and send an event for the state change.
geode-core/src/main/java/org/apache/geode/internal/cache/control/HeapMemoryMonitor.java