[
https://issues.apache.org/jira/browse/OAK-3132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16191235#comment-16191235
]
Chetan Mehrotra commented on OAK-3132:
--------------------------------------
+1. With OAK-6269 at least by design (even without COR) memory consumption
would not be high.
> Reduce memory usage of OakIndexFile
> -----------------------------------
>
> Key: OAK-3132
> URL: https://issues.apache.org/jira/browse/OAK-3132
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: lucene
> Reporter: Marcel Reutegger
>
> OakIndexFile splits an index file into Blob chunks and keeps one of the
> chunks in memory at a time. The chunk size is 32k by default but can be
> controlled with a property on the index definition.
> In a test repository I observed OakIndexFile instances consuming more than
> 600MB of heap, with a chunk size of 1MB. This seems quite high for a system
> where no query was active at that time.
> I think we should look into alternative ways to read from the Blob than just
> plain old InputStream. E.g. with a ByteChannel we could push the caching
> aspect to the Blob implementation, which could leverage an OS buffer cache.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)