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

Initial size of ConcurrentCache depends on number of segments (available processors)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.0.3, 2.1.2, 2.2
    • jackrabbit-core
    • None

    Description

      This causes a build failure on my machine. Tests run into an OOME because the initial memory footprint of a ConcurrentCache on my machine is 8k. Many of the tests keep references to some kind of repository objects (node, session, x-manager), which means ConcurrentCache instances cannot be garbage collected immediately after a test run.

      I think the overall initial size of the cache should be independent of the number of segments. See proposed patch.

      Attachments

        1. JCR-2770.patch
          0.8 kB
          Marcel Reutegger

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: