Uploaded image for project: 'Johnzon'
  1. Johnzon
  2. JOHNZON-161

JohnzonCDIExtension might create a mem leak

    XMLWordPrintableJSON

Details

    • Task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.1.7
    • 1.2.19
    • JSON-B
    • None

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              struberg Mark Struberg
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: