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

very large number of org.apache.activemq.ActiveMQSession$2 held and never released by ActiveMQConnection[ID:XXX] Scheduler thread.

XMLWordPrintable

      A huge amount of instances org.apache.activemq.ActiveMQSession$2 are all associated with a single org.apache.activemq.thread.Scheduler on one connection object. Those tasks are created on a transport interrupt (that is the start of a failover reconnect) and they should run just once to clear pending messages. These tasks ActiveMQMessageConsumer.clearMessagesInProgress() which requires the consumers "unconsumedMessages.getMutex()" which is also held as part of the ActiveMQMessageConsumer.dispatch(). In this occasion the ActiveMQMessageConsumer.dispatch() was trying to ack a previous message on that connection that was having issues. Hence the ActiveMQMessageConsumer.dispatch() was never releasing the unconsumedMessages.getMutex() and all of the org.apache.activemq.ActiveMQSession$2 where building up.

              Unassigned Unassigned
              rhn-support-pfox Patrick Fox (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: