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

Reduce memory usage of in-memory commit

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.16.0
    • Component/s: documentmk
    • Labels:
      None

      Description

      The memory usage of an in-memory commit currently depends on the number of modified nodes and the structure of modified documents. The first is limited by the updateLimit on the DocumentNodeStateBuilder. When the updateLimit is reached, the changes are pushed to a branch. The structure of the modified documents comes into play, when those documents have a rather high memory usage. The current commit implementation performs the update in a single call to DocumentStore.createOrUpdate(), which has a return type of List<Document>. The returned list contains the documents as they looked before the update. With a default of 100'000 as the updateLimit and heavy weight modified Documents, this can result in a high memory usage.

        Attachments

          Activity

            People

            • Assignee:
              mreutegg Marcel Reutegger
              Reporter:
              mreutegg Marcel Reutegger
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: