Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3.24
    • Component/s: Plugin - CDI
    • Labels:
      None
    • Environment:

      weld, cdi

      Description

      The CDI plugin was using a single 'CreationalContext' for all beans created by the CDIObjectFactory. This is incorrect and the size of the 'dependentInstances' (in the WELD implementation) grows indefinately with no beans being removed.
      Fix is to use a new 'CreationalContext' for every bean created. In our tests with WELD this does not effect the applications performance. Idealy a single 'CreationalContext' should be created for the request lifecycle. However the struts ObjectFactory API does not appear to provide any information able the lifecycle.

        Activity

        Hide
        lukaszlenart Lukasz Lenart added a comment -
        Show
        lukaszlenart Lukasz Lenart added a comment - Pull Request https://github.com/apache/struts/pull/29
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit a46b8039992e0e51e18e347832167806748d0258 in struts's branch refs/heads/develop from Lukasz Lenart
        [ https://git-wip-us.apache.org/repos/asf?p=struts.git;h=a46b803 ]

        WW-4441 Fixes memory leak in CDI factory

        Show
        jira-bot ASF subversion and git services added a comment - Commit a46b8039992e0e51e18e347832167806748d0258 in struts's branch refs/heads/develop from Lukasz Lenart [ https://git-wip-us.apache.org/repos/asf?p=struts.git;h=a46b803 ] WW-4441 Fixes memory leak in CDI factory
        Hide
        lukaszlenart Lukasz Lenart added a comment -

        PR merged, thanks!

        Show
        lukaszlenart Lukasz Lenart added a comment - PR merged, thanks!

          People

          • Assignee:
            lukaszlenart Lukasz Lenart
            Reporter:
            lukaszlenart Lukasz Lenart
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development