Uploaded image for project: 'Commons JCS'
  1. Commons JCS
  2. JCS-104

LRUMemoryCache does not perform well in multi threads enviroment

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • jcs-1.3
    • jcs-2.0-beta-1
    • Composite Cache
    • None

    Description

      Hi, Thomas

      I'm using JCS 1.3 and found the LRUMemoryCache.get() is synchronized.
      Also, the underlying map is HashTable.

      I have some lock contention when using multiple threads to hit cache.

      Do you have any plan to improve it? (maybe in 2.0.0 release?)

      Thanks
      Ma Leon

      Attachments

        Activity

          People

            tv Thomas Vandahl
            tutufool Leon Ma
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: