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

Calculate FIXED_OVERHEAD automatically

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0-alpha-1, 2.4.0
    • None
    • None
    • Reviewed

    Description

      Now the FIXED_OVERHEAD in some classes are maintained manually, an we have a method to TestHeapSizes to confirm that the value is correct.

      But it is really hard for developers to count the fields in a complicated class like HRegion. Since we have the ability to calcuate the accurate size in UT, I think we it is also possible to calcuate it when loading the class, which is a one time operation so should not effect the performance too much.

      Attachments

        1. 50M-performance.pdf
          52 kB
          Yulin Niu

        Issue Links

          Activity

            People

              niuyulin Yulin Niu
              zhangduo Duo Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: