Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-2475

Specialized beans remain in memory and corresponding resources cannot be released

XMLWordPrintable

      A specialized bean is ignored in BeanManagerImpl.addBean() but ContextualStore can hold a reference preventing the objects from being released by GC. Moreover, AbstractClassBean.cleanupAfterBoot() is not invoked for specialized beans (because they were ignored by BeanManagerImpl) and so the corresponding EnhancedAnnotatedType is also kept in memory. As a result, tens of KBs are occupied for each specializaed bean which could never be used in the application.

              mkouba@redhat.com Martin Kouba
              mkouba@redhat.com Martin Kouba
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: