ActiveMQ
  1. ActiveMQ
  2. AMQ-2041

Producer blocks, JMX Stats wrong/buggy

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Incomplete
    • Affects Version/s: 5.2.0
    • Fix Version/s: 5.x
    • Component/s: Broker
    • Labels:
      None
    • Environment:

      ActiveMQ 5.20
      Windows XP
      Java 1.6.0_11
      Resin 3.2.1

      Description

      I'm doing some loading testing and finding some bad behavior in ActiveMQ. Symptoms include the producer blocking and the JMX console displaying wild values like >100% for MemoryPercentUsage and negative amounts for QueueSize.

      Setup:
      I've got a simple Java class that sends Persistent messages to a Queue. It's setup to "flood" the server, sending 40,000 as fast as it can.

      I have an MDB running inside Resin 3.2.1 consuming these messages. I'm new to using Resin for this, so it may be contributing to the problem. Also, it appears to create 5 instances of the MDB all listening to the Queue.

      Behavior:

      First, I fire up the message flooder to start filling the Queue. Then, I fire up Resin and the MDB starts consuming the messages. The behavior I've seen is that when I restart Resin, the MemoryPercentUsage jumps to 280% and the producer gets blocked. The MDB is able to continue consuming message, but the Producer never unblocks. If I purge() the queue via the JMX console, it will free up the memory, but then the queue size goes negative as the MDB continues to consume hundreds of messages.

      My main concern is with the producer getting blocked and never unblocking.

      I'll attach a screenshot of the JMX console showing some of the symptoms

        Activity

        Kenneth Baltz created issue -
        Kenneth Baltz made changes -
        Field Original Value New Value
        Attachment JMX Console grab 1.jpg [ 17447 ]
        Rob Davies made changes -
        Fix Version/s 5.4.1 [ 12332 ]
        Bruce Snyder made changes -
        Fix Version/s 5.5.0 [ 12344 ]
        Fix Version/s 5.4.1 [ 12332 ]
        Jeff Turner made changes -
        Project Import Fri Nov 26 22:32:02 EST 2010 [ 1290828722158 ]
        Dejan Bosanac made changes -
        Fix Version/s 5.5.0 [ 12315626 ]
        Fix Version/s 5.4.2 [ 12315625 ]
        Gary Tully made changes -
        Fix Version/s 5.6.0 [ 12316331 ]
        Fix Version/s 5.5.0 [ 12315626 ]
        Hide
        Timothy Bish added a comment -

        No test case provided to help reproduce the issue. Should retest this with a newer release.

        Show
        Timothy Bish added a comment - No test case provided to help reproduce the issue. Should retest this with a newer release.
        Timothy Bish made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Incomplete [ 4 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Kenneth Baltz
          • Votes:
            7 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development