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

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

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.99.0, 0.98.3
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: