[
https://issues.apache.org/jira/browse/OAK-2713?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14495993#comment-14495993
]
Michael Dürig commented on OAK-2713:
------------------------------------
Right, \[0] is the actual fix. The rest is auxiliary as you noted.
I'd rather keeps this together here as all of the commits relate to the ongoing
work on this issue. We can move {{SegmentCompactionIT}} as soon as we have
OAK-2771 ready.
> High memory usage of CompactionMap
> ----------------------------------
>
> Key: OAK-2713
> URL: https://issues.apache.org/jira/browse/OAK-2713
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: segmentmk
> Reporter: Michael Dürig
> Assignee: Michael Dürig
> Labels: compaction, gc
> Fix For: 1.2.1
>
>
> In environments with a lot of volatile content the {{CompactionMap}} can end
> up eating a lot of memory. From
> {{CompactionStrategyMBean#getCompactionMapStats}}:
> {noformat}
> [Estimated Weight: 317,5 MB, Records: 39500094, Segments: 36698],
> [Estimated Weight: 316,4 MB, Records: 39374593, Segments: 36660],
> [Estimated Weight: 315,4 MB, Records: 39253205, Segments: 36620],
> [Estimated Weight: 315,1 MB, Records: 39221882, Segments: 36614],
> [Estimated Weight: 314,9 MB, Records: 39195490, Segments: 36604],
> [Estimated Weight: 315,0 MB, Records: 39182753, Segments: 36602],
> [Estimated Weight: 360 B, Records: 0, Segments: 0],
> {noformat}
> This causes compaction to be skipped:
> {noformat}
> 2015-03-30:30.03.2015 02:00:00.038 *INFO* [] [TarMK compaction thread
> [/foo/bar/crx-quickstart/repository/segmentstore], active since Mon Mar 30
> 02:00:00 CEST 2015, previous max duration 3854982ms]
> org.apache.jackrabbit.oak.plugins.segment.file.FileStore Not enough available
> memory 5,5 GB, needed 6,3 GB, last merge delta 1,3 GB, so skipping compaction
> for now
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)