Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-8974

Avoid JBossMarshaller instance caches growing limitless

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      In the 8.2.x design, JBoss Marshaller marshaller/unmarshaller instances were cached in thread locals to speed up things. Internally it instance caches are kept which never shrink. This can create leaks.

      We should change the code so that when releasing marshallers/unmarshaller, if instance cache is bigger than certain size, destroy the marshaller and let it recreate it. A good size to not go beyond would be 1024, given that in 8.2.x we configure JBoss Marshaller instance count to 32.

      This would require Infinispan code to access and check instance cache size.

              rh-ee-galder Galder ZamarreƱo
              rh-ee-galder Galder ZamarreƱo
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: