[infinispan-issues] [JBoss JIRA] (ISPN-8990) Avoid JBossMarshaller instance caches growing limitless

Richard Janík (JIRA) issues at jboss.org
Mon Mar 26 06:34:02 EDT 2018


    [ https://issues.jboss.org/browse/ISPN-8990?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13551229#comment-13551229 ] 

Richard Janík commented on ISPN-8990:
-------------------------------------

Oh, so I just received a forwarded mail with the information that this is gone in 9.x because the marshaller/unmarshaller types are different (no longer JBoss Marshaller). So this can probably be closed.

> Avoid JBossMarshaller instance caches growing limitless
> -------------------------------------------------------
>
>                 Key: ISPN-8990
>                 URL: https://issues.jboss.org/browse/ISPN-8990
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Marshalling
>    Affects Versions: 9.2.0.Final
>            Reporter: Richard Janík
>            Assignee: Galder Zamarreño
>              Labels: downstream_dependency
>
> 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.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)



More information about the infinispan-issues mailing list