Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-4220

Current implementation of UtilCache has a memory leak if maxInMemory is set

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Trunk
    • Fix Version/s: Trunk
    • Component/s: framework
    • Labels:
    • Environment:

      ALL

      Description

      If maxInMemory is set on caches, then current implementation will leak if many puts are done in cache.
      We made some load testing and current implementation ends very rapidly in an OutOfMemory.

      Philippe Mouawad
      http://www.ubik-ingenierie.com

        Attachments

        1. leak.png
          90 kB
          Philippe Mouawad
        2. patch-4220.patch
          1 kB
          Philippe Mouawad
        3. TestMemoryLeak.java
          3 kB
          Philippe Mouawad

          Issue Links

            Activity

              People

              • Assignee:
                erwan Erwan de Ferrieres
                Reporter:
                p.mouawad@ubik-ingenierie.com Philippe Mouawad
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: