hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anoop Sam John (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-18156) Provide a tool to show block cache summary
Date Wed, 07 Jun 2017 04:51:18 GMT

    [ https://issues.apache.org/jira/browse/HBASE-18156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16040164#comment-16040164

Anoop Sam John commented on HBASE-18156:

Bit ugly the way we get L1 and L2 cache refs in jsp page.  Knowing too much of the internal
setup.  Combined Cache not able to return any stats. Ya as the return type is single data
structure.  We should try to make it bit more generic?

> Provide a tool to show block cache summary
> ------------------------------------------
>                 Key: HBASE-18156
>                 URL: https://issues.apache.org/jira/browse/HBASE-18156
>             Project: HBase
>          Issue Type: New Feature
>    Affects Versions: 2.0.0, 1.4.0
>            Reporter: Allan Yang
>            Assignee: Allan Yang
>         Attachments: HBASE-18156.patch, HBASE-18156.v2.patch
> HBASE-17757 is already committed. But since there is no easy way to show the size distribution
of cached blocks, it is hard to decide the unified size should be used. 
> Here I provide a tool to show the details of size distribution of cached blocks. This
tool is well used in our production environment. It is a jsp page summaries the cache details
like this 
> {code}
> BlockCache type:org.apache.hadoop.hbase.io.hfile.LruBlockCache
> LruBlockCache
> Total size:28.40 GB
> Current size:22.49 GB
> MetaBlock size:1.56 GB
> Free size:5.91 GB
> Block count:152684
> Size distribution summary:
> BlockCacheSizeDistributionSummary [0 B<=blocksize<4 KB, blocks=833, heapSize=1.19
> BlockCacheSizeDistributionSummary [4 KB<=blocksize<8 KB, blocks=65, heapSize=310.83
> BlockCacheSizeDistributionSummary [8 KB<=blocksize<12 KB, blocks=175, heapSize=1.46
> BlockCacheSizeDistributionSummary [12 KB<=blocksize<16 KB, blocks=18, heapSize=267.43
> BlockCacheSizeDistributionSummary [16 KB<=blocksize<20 KB, blocks=512, heapSize=8.30
> BlockCacheSizeDistributionSummary [20 KB<=blocksize<24 KB, blocks=22, heapSize=499.66
> BlockCacheSizeDistributionSummary [24 KB<=blocksize<28 KB, blocks=24, heapSize=632.59
> BlockCacheSizeDistributionSummary [28 KB<=blocksize<32 KB, blocks=34, heapSize=1.02
> BlockCacheSizeDistributionSummary [32 KB<=blocksize<36 KB, blocks=31, heapSize=1.02
> BlockCacheSizeDistributionSummary [36 KB<=blocksize<40 KB, blocks=22, heapSize=838.58
> BlockCacheSizeDistributionSummary [40 KB<=blocksize<44 KB, blocks=28, heapSize=1.15
> {code}

This message was sent by Atlassian JIRA

View raw message