Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-10432

concurrentlinkedhashmap used by LRU cache consumes 100MB memory on 1024 core Solaris T5

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.17.1
    • Fix Version/s: 2.18.0
    • Component/s: camel-core
    • Labels:
      None
    • Environment:

      Solaris T5 1024 core machine
      java 1.7.045

      Description

      Cloned from: AMQ-6492

      On a Solaris T5 with 1024 cores, the amount of memory used by LRUCache which in turn is using ConcurrentLinkedHashMap from
      https://github.com/ben-manes/concurrentlinkedhashmap

      consumes about 20MB of memory. In my install this correlates to over 300MB of memory.

      concurrentlinkedhashmap allocates memory based on CPU count, with no upper limit, so each instance of LRUCache in memory consumes more memory than is really needed.

      See AMQ-6492 for screenshots (didn't want to copy/paste them here)

        Attachments

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              mbaker@progress.com Matt Baker
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: