[jboss-jira] [JBoss JIRA] Created: (JGRP-1337) ConnectionMap: getConnection() can be a bottleneck
Bela Ban (JIRA)
jira-events at lists.jboss.org
Thu Jun 23 08:38:24 EDT 2011
ConnectionMap: getConnection() can be a bottleneck
--------------------------------------------------
Key: JGRP-1337
URL: https://issues.jboss.org/browse/JGRP-1337
Project: JGroups
Issue Type: Enhancement
Reporter: Bela Ban
Assignee: Bela Ban
Priority: Minor
Fix For: 3.1
When multiple threads call TcpConnectionMap.Mapper.getConnection() to different target addresses, and some of those addresses are down, then the threads unnecessarily compete for the same lock, therefore socket creations to targets which are up might get delayed by socket creations to targets which are down.
SOLUTION: move the actual creation of a socket out of the lock scope
NOTE: getConnection() may not even need to acquire the lock as the calling code already acquired it.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list