[jboss-jira] [JBoss JIRA] (JGRP-2146) UDP: multiple unicast and multicast receiver threads
Bela Ban (JIRA)
issues at jboss.org
Mon Dec 12 10:11:00 EST 2016
[ https://issues.jboss.org/browse/JGRP-2146?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bela Ban resolved JGRP-2146.
----------------------------
Resolution: Done
> UDP: multiple unicast and multicast receiver threads
> ----------------------------------------------------
>
> Key: JGRP-2146
> URL: https://issues.jboss.org/browse/JGRP-2146
> Project: JGroups
> Issue Type: Enhancement
> Reporter: Bela Ban
> Assignee: Bela Ban
> Fix For: 4.0
>
>
> 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.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jboss-jira
mailing list