Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-2146

UDP: multiple unicast and multicast receiver threads

    Details

    • Type: Enhancement
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 4.0
    • Labels:
      None

      Description

      By default UDP has one thread which reads from the DatagramSocket for unicast datagram packets and another one for reading packets from the MulticastSocket.

      Because each thread deserializes the received packet into a Message or MessageBatch, if a lot of packets are received, this may slow things down.

      The new attributes ucast_receiver_threads (default:1) and mcast_receiver_threads (default:1) in UDP can create multiple unicast- or multicast- receiver threads. Note that all threads of the same type compete for the lock on the DatagramSocket or MulticastSocket respectively, so setting these attributes to high values is probably detrimental as context switching will increase.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  belaban Bela Ban
                  Reporter:
                  belaban Bela Ban
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: