MyFaces Core
  1. MyFaces Core
  2. MYFACES-3510

Application components classloader memory leak

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.6
    • Fix Version/s: 2.0.13, 2.1.7
    • Component/s: General
    • Labels:
      None
    • Environment:
      WIndows Glassfish Embedded

      Description

      We've seen an application classloader memory leak due to the new class javax.faces.component._PropertyDescriptorHolder class introduced in version 2.1.6

      This class holds a reference to a Method of a component loaded by the application classloader. The memory leak shows up when the _PropertyDescriptorHolder is stored in the _ComponentAttributesMap class that is loaded by the system class loader.

      You should use a WeakReference instead of storing the direct reference to the Method

      1. MYFACES-3510-2.patch
        4 kB
        Leonardo Uribe
      2. MYFACES-3510-1.patch
        2 kB
        Leonardo Uribe
      3. ASF.LICENSE.NOT.GRANTED--screenshot-1.jpg
        289 kB
        Ruben Martin Pozo

        Issue Links

          Activity

            People

            • Assignee:
              Leonardo Uribe
              Reporter:
              Ruben Martin Pozo
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development