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
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoid
Increase the counter for heap occupancy percent above low watermarkvoid
Increase the counter for tuner neither expanding memstore global size limit nor expanding blockcache max size.void
setCurBlockCacheSizeGauge
(long blockCacheSize) Set the current blockcache size used gaugevoid
setCurMemStoreOffHeapSizeGauge
(long memStoreOffHeapSize) Set the current global memstore off-heap size gaugevoid
setCurMemStoreOnHeapSizeGauge
(long memStoreOnHeapSize) Set the current global memstore on-heap size gaugevoid
setCurMemStoreSizeGauge
(long memStoreSize) Set the current global memstore size used gaugevoid
updateBlockCacheDeltaSizeHistogram
(int blockCacheDeltaSize) Update the increase/decrease blockcache size histogramvoid
updateBlockedFlushCount
(long blockedFlushCount) Update/Set the blocked flush count histogram/gaugevoid
updateMemStoreDeltaSizeHistogram
(int memStoreDeltaSize) Update the increase/decrease memstore size histogramvoid
updateUnblockedFlushCount
(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
-