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

Excessive memory usage by the cached segment references

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Bug
    • None
    • None
    • segment-tar

    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

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

              Dates

                Created:
                Updated:
                Resolved: