cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bharath Ganesh (JIRA)" <>
Subject [jira] Reopened: (CXF-1639) Memory leak due to literal keys in WSDLDefinition map
Date Tue, 10 Jun 2008 18:09:45 GMT


Bharath Ganesh reopened CXF-1639:

>From the code it looks that wherever Strings are used as keys, a new String is created.
So there is no chance of a literal being used as key. So we need to once again verify with
memory profiler if this is really causing the issue or is it something else. 
So as of now leaving this issue open - Will update again after profiling.

> Memory leak due to literal keys in WSDLDefinition map
> -----------------------------------------------------
>                 Key: CXF-1639
>                 URL:
>             Project: CXF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.1, 2.0.6
>            Reporter: Bharath Ganesh
>            Assignee: Bharath Ganesh
>             Fix For: 2.1.1, 2.0.7
> The definitionsMap in WSDLManagerImpl holds the WSDLDefinitions against a weak key, again
> on the WeakHashMap semantics for removal.
> The loadDefinition(String) method loads the WSDLDef and puts this in a map
> against a String key. But this String key, is a literal String and will be
> present in the constant pool, where garbage collection never happens. This
> would mean the key would always be referenced from the constant pool, and
> the entry would never be removed.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message