Uploaded image for project: 'ActiveMQ .Net'
  1. ActiveMQ .Net
  2. AMQNET-561

CLONE - NMS Failover causes CPU utilization to spike if ActiveMQ is stopped.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.7.2
    • None
    • ActiveMQ
    • None
    • .NET 3.5

    • Patch Available
    • Regression

    Description

      Looks like the issue reappeared again.

      1) Configure a simple program that attempts to connect to ActiveMQ with the url "activemq:failover:(tcp://localhost:61616)"
      2) Make sure activemq is not running on the local host
      3) Try to connect.
      4) Notice that the CPU utilization in the sample program is high.
      5) Start ActiveMQ.
      6) Notice that the connection is successful but the CPU utilization remains high.

      Expected:
      I expect, potentially, an initial spike in CPU utilization but not sustained high CPU.

      The stack points to the TcpTransport.ReadLoop() method.
      I tried to add Thread.Sleep(10); into this loop and CPU isn't consumed, but I suppose this is not a good fix for that problem.

      Attachments

        Issue Links

          Activity

            People

              tabish Timothy A. Bish
              olegich Oleg Kozakevych
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: