Class MetricsHeapMemoryManager

java.lang.Object
org.apache.hadoop.hbase.regionserver.MetricsHeapMemoryManager

@Private public class MetricsHeapMemoryManager extends Object
This class is for maintaining the various regionserver's heap memory manager statistics and publishing them through the metrics interfaces.
  • Field Details

  • Constructor Details

  • Method Details

    • getMetricsSource

    • updateBlockedFlushCount

      public void updateBlockedFlushCount(long blockedFlushCount)
      Update/Set the blocked flush count histogram/gauge
      Parameters:
      blockedFlushCount - the number of blocked memstore flush since last tuning.
    • updateUnblockedFlushCount

      public void updateUnblockedFlushCount(long unblockedFlushCount)
      Update/Set the unblocked flush count histogram/gauge
      Parameters:
      unblockedFlushCount - the number of unblocked memstore flush since last tuning.
    • setCurBlockCacheSizeGauge

      public void setCurBlockCacheSizeGauge(long blockCacheSize)
      Set the current blockcache size used gauge
      Parameters:
      blockCacheSize - the current memory usage in blockcache, in bytes.
    • setCurMemStoreSizeGauge

      public void setCurMemStoreSizeGauge(long memStoreSize)
      Set the current global memstore size used gauge
      Parameters:
      memStoreSize - the current memory usage in memstore, in bytes.
    • setCurMemStoreOnHeapSizeGauge

      public void setCurMemStoreOnHeapSizeGauge(long memStoreOnHeapSize)
      Set the current global memstore on-heap size gauge
      Parameters:
      memStoreOnHeapSize - the current memory on-heap size in memstore, in bytes.
    • setCurMemStoreOffHeapSizeGauge

      public void setCurMemStoreOffHeapSizeGauge(long memStoreOffHeapSize)
      Set the current global memstore off-heap size gauge
      Parameters:
      memStoreOffHeapSize - the current memory off-heap size in memstore, in bytes.
    • updateMemStoreDeltaSizeHistogram

      public void updateMemStoreDeltaSizeHistogram(int memStoreDeltaSize)
      Update the increase/decrease memstore size histogram
      Parameters:
      memStoreDeltaSize - the tuning result of memstore.
    • updateBlockCacheDeltaSizeHistogram

      public void updateBlockCacheDeltaSizeHistogram(int blockCacheDeltaSize)
      Update the increase/decrease blockcache size histogram
      Parameters:
      blockCacheDeltaSize - the tuning result of blockcache.
    • increaseTunerDoNothingCounter

      Increase the counter for tuner neither expanding memstore global size limit nor expanding blockcache max size.
    • increaseAboveHeapOccupancyLowWatermarkCounter

      Increase the counter for heap occupancy percent above low watermark