Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-1705

Reduce memory usage of transient nodes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.5
    • jackrabbit-core
    • None

    Description

      When adding lots of transient nodes, most of them don't have child nodes because they are leafs. The attached patch initializes NodeState.childNodeEntries with an unmodifiable empty ChildNodeEntries instance and turns it into a modifiable one only when needed.

      Running a test with 100k nodes (10 children per node) the memory consumption for child node entries drops from 42MB to 12MB with this patch.

      Attachments

        1. JCR-1705-refactored.patch
          108 kB
          Marcel Reutegger
        2. JCR-1705-refactored.patch
          121 kB
          Marcel Reutegger
        3. JCR-1705.patch
          9 kB
          Marcel Reutegger
        4. JCR-1705.patch
          28 kB
          Marcel Reutegger

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: