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

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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • Trunk
    • Trunk
    • framework
    • 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. TestMemoryLeak.java
          3 kB
          Philippe Mouawad
        2. leak.png
          90 kB
          Philippe Mouawad
        3. patch-4220.patch
          1 kB
          Philippe Mouawad

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment