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

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • JBoss A-MQ 6.2.1
    • JBoss A-MQ 6.2
    • broker
    • None
    • User Experience

      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.

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

              tbish@redhat.com Timothy Bish (Inactive)
              Argo_Integration Travis North (Inactive)
              Tomas Plevko Tomas Plevko
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: