Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-5675

InvokerAdaptorService: Non synchronized Map (remoteListeners) in addNotificationListener()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • No Release
    • JBossAS-4.0.3 SP1, JBossAS-4.0.4.GA
    • JMX
    • None
    • JDK 1.5.0_04-b05, Sun Solaris 9

      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.

              dandread1@redhat.com Dimitrios Andreadis
              mardinator martin walla (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: