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

HRegionServer#createRegionLoad() should reuse RegionLoad.Builder instance when called in a loop

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.99.0, 0.98.3
    • None
    • None
    • Reviewed

    Description

      As Andrew showed in the attachment to HBASE-11165, ClusterStatusProtos$RegionLoad$Builder took 25MB heap space.

      buildServerLoad() calls createRegionLoad() for each region on the region server.
      One instance of ClusterStatusProtos$RegionLoad$Builder can be created outside the loop and passed to createRegionLoad().

      Thanks Andrew for the finding.

      Attachments

        1. 11219-v2.txt
          3 kB
          Ted Yu
        2. 11219-v1.txt
          2 kB
          Ted Yu

        Activity

          People

            yuzhihong@gmail.com Ted Yu
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: