[ https://issues.apache.org/jira/browse/OAK-6106?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Dürig updated OAK-6106: ------------------------------- Attachment: OAK-6106.patch Proposed patch: [^OAK-6106.patch]. The patch caches msb, lsb pairs instead of {{SegmentId}} instances. With this patch the test does not go OOM any more and heap usage stays capped. [~frm], could you have a look please? > Excessive memory usage by the cached segment references > ------------------------------------------------------- > > Key: OAK-6106 > URL: https://issues.apache.org/jira/browse/OAK-6106 > Project: Jackrabbit Oak > Issue Type: Bug > Components: segment-tar > Reporter: Michael Dürig > Assignee: Michael Dürig > Labels: perfomance > Fix For: 1.7.0, 1.8 > > Attachments: OAK-6106.patch > > > 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. -- This message was sent by Atlassian JIRA (v6.3.15#6346)