[infinispan-issues] [JBoss JIRA] (ISPN-6511) Allocate less memory during RPC response handling

Dan Berindei (JIRA) issues at jboss.org
Fri Apr 15 12:27:00 EDT 2016


Dan Berindei created ISPN-6511:
----------------------------------

             Summary: Allocate less memory during RPC response handling
                 Key: ISPN-6511
                 URL: https://issues.jboss.org/browse/ISPN-6511
             Project: Infinispan
          Issue Type: Task
          Components: Core
    Affects Versions: 9.0.0.Alpha1, 8.2.1.Final
            Reporter: Dan Berindei
            Assignee: Dan Berindei
             Fix For: 9.0.0.Alpha2


For broadcasts/anycasts, the {{JGroupsTransport.invokeRemotelyAsync()}} responses {{HashMap}} is created with the wrong initial capacity ({{recipients.size()}} instead of ({{recipients.size()/DEFAULT_LOAD_FACTOR}}, and it needs a resize to fit all the responses.

Clustered get commands shouldn't have the problem because usually there is only one valid response. However, we actually a {{CacheNotFoundResponse}} for all the owners that we didn't request the entry from, triggering the resize.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the infinispan-issues mailing list