Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-1958

Minimize memory allocation on new connection

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.2.3, 4.4.0, 4.3.2
    • Component/s: None
    • Labels:

      Description

      There's a significant amount of memory allocated when a new connection is established solely to create the ReadOnlyProps. Need to figure out a way to minimize this. It looks like the majority of memory allocations occur in this org.apache.phoenix.util.ReadOnlyProps constructor:
      https://github.com/apache/phoenix/blob/master/phoenix-core/src/main/java/org/apache/phoenix/util/ReadOnlyProps.java#L61

      Another notable memory allocator is this java.util.HashMap.putAll call:
      https://github.com/apache/phoenix/blob/master/phoenix-core/src/main/java/org/apache/phoenix/jdbc/PhoenixConnection.java#L192

        Attachments

        1. PHOENIX-1958-4.x-HBase-0.98.patch
          6 kB
          James R. Taylor
        2. PHOENIX-1958-master.patch
          7 kB
          James R. Taylor
        3. PHOENIX-1958-addendum.patch
          1 kB
          James R. Taylor
        4. phoenix-4.2.3-SNAPSHOT-server.jar
          3.87 MB
          James R. Taylor
        5. phoenix-core-4.2.3-SNAPSHOT.jar
          2.72 MB
          James R. Taylor

          Activity

            People

            • Assignee:
              jamestaylor James R. Taylor
              Reporter:
              jamestaylor James R. Taylor
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: