[
https://jira.jboss.org/browse/JBMESSAGING-1811?page=com.atlassian.jira.pl...
]
Howard Gao commented on JBMESSAGING-1811:
-----------------------------------------
Hi Wendy,
JBoss Messaging 2.0 is now HornetQ, and it current version is 2.1.1.Final. Please download
and try it. I believe the problem is gone as the code has been modified.
Please use HornetQ Jira for its issues.
https://jira.jboss.org/browse/HORNETQ
Thanks.
Howard
Thread.sleep() is called with lock held in class NettyAcceptor
--------------------------------------------------------------
Key: JBMESSAGING-1811
URL:
https://jira.jboss.org/browse/JBMESSAGING-1811
Project: JBoss Messaging
Issue Type: Bug
Components: AS Integration
Affects Versions: 2.0.0.beta4
Reporter: Wendy Feng
Original Estimate: 1 hour
Remaining Estimate: 1 hour
NettyAcceptor has unefficient code as follow:
public synchronized void pause()
{
...
try
{
Thread.sleep(500);
}
catch (Exception e)
{
}
...
}
Since the pause() method has been synchronized, calling Thread.sleep() can not realease
the resource to other waiting threads. It may cause poor performance or even deadlock.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira