[ 
https://issues.apache.org/jira/browse/JOHNZON-161?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16394241#comment-16394241
 ] 

Romain Manni-Bucau commented on JOHNZON-161:
--------------------------------------------

the cdi extension exposes (public API) untrack for that purpose and 
applications should integrate with it if needed, since MEECROWAVE-104 solves 
that at meecrowave level (client level) I'm tempted to close this one

> JohnzonCDIExtension might create a mem leak
> -------------------------------------------
>
>                 Key: JOHNZON-161
>                 URL: https://issues.apache.org/jira/browse/JOHNZON-161
>             Project: Johnzon
>          Issue Type: Task
>          Components: JSON-B
>    Affects Versions: 1.1.7
>            Reporter: Mark Struberg
>            Priority: Blocker
>             Fix For: 1.1.8
>
>
> We use Json-B quite heavily and I experienced that there are tons of elements 
> in org.apache.johnzon.jsonb.cdi.JohnzonCdiExtension#jsonbs.
> Way too much for my gut feeling.
> The reason is that we do not use JsonBuilder as autocloseable is that it is 
> not required by the spec.
>  
> There is also not much documentation for JohnzonCdiExtension, so I can only 
> guess that it is for cleanly shutting down unused JsonbBuilder instances when 
> the app stops.
> We should probably only store WeakReferences.
>  
> I think the safest



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to