[jboss-jira] [JBoss JIRA] Created: (JBAS-5675) InvokerAdaptorService: Non synchronized Map (remoteListeners) in addNotificationListener()
martin walla (JIRA)
jira-events at lists.jboss.org
Wed Jun 25 06:43:28 EDT 2008
InvokerAdaptorService: Non synchronized Map (remoteListeners) in addNotificationListener()
------------------------------------------------------------------------------------------
Key: JBAS-5675
URL: http://jira.jboss.com/jira/browse/JBAS-5675
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: JMX
Affects Versions: JBossAS-4.0.4.GA, JBossAS-4.0.3 SP1
Environment: JDK 1.5.0_04-b05, Sun Solaris 9
Reporter: martin walla
Assigned To: Dimitris Andreadis
org.jboss.jmx.connector.invoker.InvokerAdaptorService.java
If multiple Threads concurrently try to add a NotificationListener to the same MBean then a put to the HashMap "remoteListeners"
is done concurrently (unsynchronized).
This leads in some cases (e.g. HashMap has to grow) to endless loops of this threads and they are consuming CPU.
I know that the initial reason was a programming mistake on our side (missing removeNotificationListener() which causes the
growing of the HashMap) but nevertheless this is a bug in InvokerAdaptorService.java.
I required i can supply the stacktrace of a Thread dump.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list