Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-21398

Possible Memory leak in CourierService

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: RESOLVED
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.7.2, 2.8.1, 2.9.3
    • Fix Version/s: 10.0
    • Component/s: Courier
    • Labels:
      None
    • 2.9 Status:
      Merge

      Description

      it seems there may be a potential memory leak in Courier service (org.sakaiproject.presence.impl.BasePresenceService).

      memory analysis of a heap dump taken after 640 hours of running on 7.2 shows that a single ConcurrentHashMap takes up 72Mb of ram.

      The HashMap is:

      /** Stores a List of Deliveries for each address, keyed by address. */
      protected Map<String, List<Delivery>> m_addresses =
      new ConcurrentHashMap<String, List<Delivery>>(nLocks, 0.75f, nLocks);

      I speculate that there is a condition in which elements are added to the map but never removed

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  maintenanceteam Core Team
                  Reporter:
                  dhorwitz David Horwitz
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  8 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration