You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Marcel Reutegger (JIRA)" <ji...@apache.org> on 2014/05/28 10:43:01 UTC
[jira] [Created] (OAK-1861) Limit memory usage of
DocumentNodeStore.readChildren()
Marcel Reutegger created OAK-1861:
-------------------------------------
Summary: Limit memory usage of DocumentNodeStore.readChildren()
Key: OAK-1861
URL: https://issues.apache.org/jira/browse/OAK-1861
Project: Jackrabbit Oak
Issue Type: Improvement
Components: core, mongomk
Reporter: Marcel Reutegger
There is still a TODO in DocumentNodeStore.readChildren() about memory usage. The name offset is already implemented and used when iterating over many child nodes. But there are still cases where the readChildren() method itself may use too much memory. This happens when there are a lot of documents for deleted child nodes. The for loop inside readChildren() will double the rawLimit until it is able to fetch the requested nodes and start again with an empty list of children. This should be improved to continue after the last returned document.
--
This message was sent by Atlassian JIRA
(v6.2#6252)