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

Allocate less memory during RPC response handling

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Major
    • 9.0.0.Alpha2, 9.0.0.Final
    • 8.2.1.Final, 9.0.0.Alpha1
    • Core
    • None

    Description

      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.

      Attachments

        Activity

          People

            dberinde@redhat.com Dan Berindei (Inactive)
            dberinde@redhat.com Dan Berindei (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: