Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-6106

Excessive memory usage by the cached segment references

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Not A Bug
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: segment-tar
    • Labels:

      Description

      The references of a segment to other segments are cached within Segment.readReferencedSegments(). However caching the SegmentId instances themselves leads to excessive heap usage as each id also keeps a reference to its underlying segment.

      I suggest to cache those references as msb, lsb pairs instead and create the SegmentId instance on the fly when required.

        Attachments

        1. OAK-6106.patch
          3 kB
          Michael Dürig

          Issue Links

            Activity

              People

              • Assignee:
                mduerig Michael Dürig
                Reporter:
                mduerig Michael Dürig
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: