Class MetricsHeapMemoryManager
java.lang.Object
org.apache.hadoop.hbase.regionserver.MetricsHeapMemoryManager
This class is for maintaining the various regionserver's heap memory manager statistics and
publishing them through the metrics interfaces.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoidIncrease the counter for heap occupancy percent above low watermarkvoidIncrease the counter for tuner neither expanding memstore global size limit nor expanding blockcache max size.voidsetCurBlockCacheSizeGauge(long blockCacheSize) Set the current blockcache size used gaugevoidsetCurMemStoreOffHeapSizeGauge(long memStoreOffHeapSize) Set the current global memstore off-heap size gaugevoidsetCurMemStoreOnHeapSizeGauge(long memStoreOnHeapSize) Set the current global memstore on-heap size gaugevoidsetCurMemStoreSizeGauge(long memStoreSize) Set the current global memstore size used gaugevoidupdateBlockCacheDeltaSizeHistogram(int blockCacheDeltaSize) Update the increase/decrease blockcache size histogramvoidupdateBlockedFlushCount(long blockedFlushCount) Update/Set the blocked flush count histogram/gaugevoidupdateMemStoreDeltaSizeHistogram(int memStoreDeltaSize) Update the increase/decrease memstore size histogramvoidupdateUnblockedFlushCount(long unblockedFlushCount) Update/Set the unblocked flush count histogram/gauge
-
Field Details
-
source
-
-
Constructor Details
-
MetricsHeapMemoryManager
public MetricsHeapMemoryManager() -
MetricsHeapMemoryManager
-
-
Method Details
-
getMetricsSource
-
updateBlockedFlushCount
Update/Set the blocked flush count histogram/gauge- Parameters:
blockedFlushCount- the number of blocked memstore flush since last tuning.
-
updateUnblockedFlushCount
Update/Set the unblocked flush count histogram/gauge- Parameters:
unblockedFlushCount- the number of unblocked memstore flush since last tuning.
-
setCurBlockCacheSizeGauge
Set the current blockcache size used gauge- Parameters:
blockCacheSize- the current memory usage in blockcache, in bytes.
-
setCurMemStoreSizeGauge
Set the current global memstore size used gauge- Parameters:
memStoreSize- the current memory usage in memstore, in bytes.
-
setCurMemStoreOnHeapSizeGauge
Set the current global memstore on-heap size gauge- Parameters:
memStoreOnHeapSize- the current memory on-heap size in memstore, in bytes.
-
setCurMemStoreOffHeapSizeGauge
Set the current global memstore off-heap size gauge- Parameters:
memStoreOffHeapSize- the current memory off-heap size in memstore, in bytes.
-
updateMemStoreDeltaSizeHistogram
Update the increase/decrease memstore size histogram- Parameters:
memStoreDeltaSize- the tuning result of memstore.
-
updateBlockCacheDeltaSizeHistogram
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
-