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

VersionGC uses way too much memory if there is a large pile of garbage

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.0.11
    • 1.0.13, 1.1.8
    • core, mongomk
    • None

    Description

      It has been noticed that on a system where revision-gc (VersionGarbageCollector of mongomk) did not run for a few days (due to not interfering with some tests/large bulk operations) that there was such a large pile of garbage accumulating, that the following code

      VersionGarbageCollector.collectDeletedDocuments
      

      in the for loop, creates such a large list of NodeDocuments to delete (docIdsToDelete) that it uses up too much memory, causing the JVM's GC to constantly spin in Full-GCs.

      Attachments

        1. OAK-2557-3.patch
          26 kB
          Chetan Mehrotra
        2. OAK-2557-2.patch
          20 kB
          Chetan Mehrotra
        3. OAK-2557.patch
          5 kB
          Chetan Mehrotra

        Issue Links

          Activity

            People

              chetanm Chetan Mehrotra
              stefanegli Stefan Egli
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: