Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-2045

Fix major memory leak that comes from Ehcache's group workaround

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 5.1.2, 5.2.1
    • Fix Version/s: 5.2.2
    • Component/s: None
    • Labels:
      None
    • Backported to Branch:
      Committed

      Description

      See LEP-3267

      Ehcache does not support "groups". We wrote a series of classes that worked around that issue by mantaining our own notion of groups that OSCache had. The problem is that when Ehcache would invalidate its cache because of size limitations, there was no way to also invalidate the classes that maintained the group structure, which would lead to a memory leak because the groups would grow indefinitely. The group data was also not part of the multicast traffic, so that would also get stale.

      Fix is to remove the usage of the group notion and rely on Ehcache's own mechanisms.

      The drawback is that we're a bit more aggressive in clearing the cache in scenarios like WikiCacheUtil, CacheUtil, and JournalContentUtil, but we have better memory usage in cases like FinderCacheUtil.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              brian.chan Brian Chan
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                12 years, 51 weeks ago

                  Packages

                  Version Package
                  5.2.2