HBase
  1. HBase
  2. HBASE-11219

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

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major 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.

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

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Ted Yu
            Reporter:
            Ted Yu
          • Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development