Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-1861

Limit memory usage of DocumentNodeStore.readChildren()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0.2, 1.1.0
    • core, mongomk
    • None

    Description

      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.

      Attachments

        Activity

          People

            mreutegg Marcel Reutegger
            mreutegg Marcel Reutegger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: