GitHub user stevensmi opened a pull request:

    https://github.com/apache/struts/pull/29

    Fix Memory leak in CDI plugin

    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.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/stevensmi/struts cdi-plugin-memoryleakfix

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/struts/pull/29.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #29
    
----
commit 6291fa920d9b89a420def74b5c3a07854eb0e866
Author: Michael Stevens <m...@michael-stevens.de>
Date:   2014-11-12T12:34:17Z

    Fix Memory leak in CDI plugin
    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.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org
For additional commands, e-mail: dev-h...@struts.apache.org

Reply via email to