You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Andrew Kyle Purtell (Jira)" <ji...@apache.org> on 2022/06/16 17:48:00 UTC

[jira] [Resolved] (HBASE-9089) HRegion.heapSize is missing many fields

     [ https://issues.apache.org/jira/browse/HBASE-9089?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Kyle Purtell resolved HBASE-9089.
----------------------------------------
    Resolution: Later

> HRegion.heapSize is missing many fields
> ---------------------------------------
>
>                 Key: HBASE-9089
>                 URL: https://issues.apache.org/jira/browse/HBASE-9089
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Dave Latham
>            Priority: Minor
>
> HRegion's heapSize method is missing many fields from its calculation.
> The static value DEEP_OVERHEAD is missing these:
> {noformat}
>   // 1 x HashMap - coprocessorServiceHandlers
>   // 6 org.cliffc.high_scale_lib.Counter - numMutationsWithoutWAL, dataInMemoryWithoutWAL,
>   //   checkAndMutateChecksPassed, checkAndMutateChecksFailed, readRequestsCount,
>   //   writeRequestsCount, updatesBlockedMs
>   // 1 x HRegion$WriteState - writestate
>   // 1 x RegionCoprocessorHost - coprocessorHost
>   // 1 x RegionSplitPolicy - splitPolicy
>   // 1 x MetricsRegion - metricsRegion
>   // 1 x MetricsRegionWrapperImpl - metricsRegionWrapper
> {noformat}
> and the actual heapSize() method doesn't take into account at least row locks, recent flushes, mvcc entries, and coprocessors.  Possibly more.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)