3 Replies Latest reply: Jan 7, 2011 3:19 AM by oscarfh RSS

    Why are there pending messages that can't be consumed?

      Hi all,
      I am using Glassfish with a self made monitoring/stress-testing application.
      In this app I can define consumers and producers, so I can somehow see the behavior of the system under many different conditions.

      But something odd is happening: there are always 1000~2500 messages that I can see that they are there but I can't consume them. I have checked in my admin console and they are shown in the
      "Number of Messages Pending Acknowledgment - Current number of messages being held in memory and persistent store pending acknowledgment".
      Why they are pending acknowledgment? I sent them in the same way I did all others, and they all worked.

      I found this link, they are all having similar problems, but they are using ActiveMQ. http://fusesource.com/forums/thread.jspa?threadID=1060

      Could anyone help me to find out why this can be happening?

      Edit: Could it be that the acknowledgement of a consumer is not getting back to the queue and the queue is reserving the message to that consumer, so nobody else can consume it?


      Edited by: 808621 on 6/Jan/2011 2:02

      Edited by: 808621 on 6/Jan/2011 2:47