Uploaded image for project: 'JBoss A-MQ'
  1. JBoss A-MQ
  2. ENTMQ-1204

FailoverTransport With maxReconnectAttempts Results In High CPU and Thread Count

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: JBoss A-MQ 6.2
    • Fix Version/s: JBoss A-MQ 6.2.1
    • Component/s: broker
    • Labels:
      None
    • Affects:
      User Experience

      Description

      If you define a network connector with the maxReconnectAttempts and there is no broker listening at the remote endpoint, the result is increasing thread count and excessive cpu usage by the broker.

      So given the NC below, which does not have a remote broker at 10.0.0.5:61616, you'll note that a few minutes after starting the broker, its thread count begins to rise and it pegs the CPU at > 100%.

      <networkConnector name="my-connector" uri="static:(failover:(tcp://10.0.0.5:61616)?maxReconnectAttempts=0)" userName="admin" password="admin" />
      

      The value assigned to maxReconnectAttempts can be 0 or greater. The higher the value, the longer it seems to take for the problem to occur.

      Attached thread dump and top output taken while problem was occurring.

        Gliffy Diagrams

          Attachments

          1. tdump.txt
            73 kB
          2. top.txt
            4 kB

            Issue Links

              Activity

                People

                • Assignee:
                  tabish121 Timothy Bish
                  Reporter:
                  joef551 Joe Fernandez
                  Tester:
                  Tomas Plevko
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  8 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: