[
https://issues.apache.org/jira/browse/OAK-2595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14513962#comment-14513962
]
Michael Dürig commented on OAK-2595:
------------------------------------
The fix also adds a {{compaction.estimate.sampling.rate}} [feature flag |
https://github.com/apache/jackrabbit-oak/blob/17e153d6c63a61459351031d7f69db76c2bf46e3/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/segment/file/CompactionGainEstimate.java#L47]
which could be used to reduce the sampling rate in the estimation process for
really large repositories where the default value of 1 still results in high
memory consumption. See
> High memory consumption of CompactionGainEstimate
> -------------------------------------------------
>
> Key: OAK-2595
> URL: https://issues.apache.org/jira/browse/OAK-2595
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: segmentmk
> Reporter: Michael Dürig
> Assignee: Michael Dürig
> Labels: compaction, gc
> Fix For: 1.1.8, 1.0.13
>
>
> {{CompactionGainEstimate}} keeps a set for the visited record ids. Each entry
> in that set is represented by an instance of {{ThinRecordId}}. For big
> repositories the instance overhead lead to {{OOME}} while running the
> compaction estimator.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)