Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-10116

SlabCache metrics improvements

    XMLWordPrintableJSON

Details

    • Reviewed
    • Hide
      This change introduces DirectMemory reporting to the RegionServer status page. Oracle JDK6 (1.6.0_31 in my test) doesn't expose "java.nio:type=BufferPool,name=direct", so DirectMemoryUtils#getDirectMemoryUsage (and thus the change to rs-status#memoryStats) reports 0 on that environment, even when DirectMemory is being consumed.
      Show
      This change introduces DirectMemory reporting to the RegionServer status page. Oracle JDK6 (1.6.0_31 in my test) doesn't expose "java.nio:type=BufferPool,name=direct", so DirectMemoryUtils#getDirectMemoryUsage (and thus the change to rs-status#memoryStats) reports 0 on that environment, even when DirectMemory is being consumed.

    Description

      SlabCache incorrectly reports block count and could do a better job reporting free size. MetricsRegionServerWrapperImpl incorrectly reports block cache count. Expose Direct Memory stats on RegionServer WebUI.

      Also clean up javadoc on BlockCache interface methods, and whitespace in cache-related classes.

      Attachments

        1. HBASE-10116.00.patch
          15 kB
          Nick Dimiduk
        2. HBASE-10116.addendum.00.patch
          0.9 kB
          Nick Dimiduk

        Activity

          People

            ndimiduk Nick Dimiduk
            ndimiduk Nick Dimiduk
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: