Broker not delivering messages

Hi,
I have a system which has been working fine for a year and is now causing some issues. It is running OpenMQ 4.2 with Java 1.6 (1.6.0_11-b03) on Solaris (SunOS 5.10 Generic_138888-07 sun4v sparc SUNW,Sun-Blade-T6340). No changes have been made to the configuration or the system recently.
The issue is:
1- A producer sends a bunch of messages (around 100) in a queue
2- A consumer listening to the same queue picks up say 96 of the messages and leaves 4 of them in the queue (4 random messages, not in sequence or first or last)
When I try to read these messages left on the queue using a separate script (different JVM than main software) which just connects to the queue and dumps its content on the screen, the call to consumer.receive() does not return any message. Yet listing the queue content (with "imqcmd list") actually shows the 4 messages in the queue and the consumer attached to it :/
When I restart the broker then the 4 messages are delivered correctly and processed by the application.
The broker log (set to default INFO) doesn't show any error or unusual trace, my application logs either.
This problem happened the first time after the broker had been running for 3 months in a row so we though it would probably not happen again if we restart it every month. Yet it now happened again after only 20 days since the last restart of the broker.
Another side problem: when I tried to dump the JVM content using "kill -3" I could not find it in the broker log (set using -Dimq.log.file.filename=broker.log on the command line starting the broker), any idea of how I should proceed?
Thank you very much for any help you could provide
Mickael

I agree with TravelEntity.
The issue is:
1- The producer (only one) sends a bunch of messages (around 100) in a queue
2- The consumer (only one) listening to the same queue picks up say 96 of the messages and leaves 4 of them in the queue (4 random messages, not in sequence or first or last)The basic behaviour here is that the moment this consumer is created (and the connection started) the broker will send all 100 messages to the consumer (assuming you're not using a message selector), where they will be cached in the client until they are delivered to the client application. Whilst they remain in the client they will be unavailable to other consumers. When the first consumer closes, any unconsumed messages will be returned to the broker and become available for delivery to other consumers. The number of messages that are "pre-fetched" to a consumer is defined by the consumerFlowLimit of the connection or destination (see MQ admin guide for details). The default is 1000.
So this appears to explain why when you created a second consumer, it didn't receive any messages despite there being four messages left on the queue.
However I don't understand what you mean by "leave 4 random messages in the queue". How were you doing that? Messages are consumed from the queue in order - unless you use a message selector.
3- The producer sends another bunch of messages in the same queue
4- The consumer picks up say 98 of the messages and leaves 2 of them in the queue
5- mqlist then shows 6 messages in the queue, consumer.receive() returns null if tried from the main client or from a separate queue dump tool What is mqlist? It's not a MQ tool.
You can use the MQ command imqcmd to report on how many messages are being cached on the client in this way: in the following sample of its usage, "Count" is the total number of messages on the queue, and "UnAck" tells you how many of those messages are being cached on the client.
C:\mq\bin>imqcmd list dst 
   Name     Type    State      Producers        Consumers                  Msgs
                            Total  Wildcard  Total  Wildcard  Count  Remote  UnAck  Avg Size
INPUT.Q     Queue  RUNNING  0      -         1      -         9268   0       4709   1237.2805
mq.sys.dmq  Queue  RUNNING  0      -         0      -         0      0       0      0.0

Similar Messages

  • When I send a text message to a friends phone I get a Not Delivered message but I can receive his message

    When I send a text message to a friends phone I get a Not Delivered message but I can receive his message

    Hello dgantz,
    The following article provides information and steps that can help get Messages working correctly.
    iOS: Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Cheers,
    Allen

  • I recently started getting a "not delivered" message in imessages. Any suggestion what the problem might be?

    I recentlt started getting a "not delivered" message in imessage!  Any suggestions what may cause this?
    rtrruss

    kbomby2 wrote:
    Could also try a soft reset - Hold Power and Home down together for 10 seconds.
    If that's a 'soft' reset, then what's a 'hard' reset?

  • I keep getting a "not delivered" message when I try to send a picture through imessage

    Over the last week each time I sent a picture in iMessage it goes out then I get a "Not Delivered" message. The other person gets the picture even though it says not delivered.  I've shut iMessage off then back on, I've done a hard shutdown/restart.  I'm not sure what else to do.  Is anyone else having this issue and been able to resolve it?
    Thank you!

    How do you fix apple errors that come up when you try to open iTunes?

  • Keep getting not delivered message when I send a text

    I keep getting a not delivered message when I send a text.  The message actually does send but still very annoying. This started when I did the update. Any one have any fix ideas

    Try sending it as a regular text message... turn off iMessage.

  • Anyone having problem with iphone getting not delivered message after sending picture and it really is getting delivered to recipient.

    Anyone having problem with iphone getting a not delivered message after sending pic and it really is getting delivered to recipient.

    Same problem here with and I've done everything shy of a total reset which I also find unacceptable. This problem exists on all iMessage platforms (iPhone, iPad, and Mac) so I don't see how restoring my iPhone would help the problem.

  • IPhone 5 - "Not Delivered" Message for Pictures Sent via iMessage

    I have received the "not delivered" message when trying to send a picture message via iMessage. The pictures actually are received by the other parties, yet I still get the error message, as do other parties when trying to send photos to me. If the picture is sent via text they send without the error message. Does anyone have any information that could help me with this problem?
    I have the 32GB iPhone 5 on iOS 7.1.1.

    Any errors when attempting to view pics?
    Have you tried Settings > General > Reset > Reset Network Settings?

  • Imessage 'not delivered' message!

    Hi all,
    Please, can somebody help me? I am on IOS 5 and all of my family are on IOS 5 too. we all have imessage enabled, yet when I try to send a message to either the ipod or ipad, from my iphone, I keep getting the message 'not delivered'.
    I have tried many different suggestions on these and other forums, with no luck! Please, can anybody help me?
    Thank you in advance,
    Matt

    I have even tried to restore phone twice! No good.

  • Why do I get a 'not delivered' message when I send a text? The recipient does receive the text.

    When I send an iMessage it says 'delivered', but as soon as the other person reads it it changes to 'not delivered'. But the recipient actually does read the message and replies back. The other person gets the same messages if they are messaging me, but not when they are messaging other people. The problem seems to be at my end.

    I've noticed that this happens a lot to me with some people who are connected to corporate wifi.

  • Messages on my ipage will not send. I have tried everything suggested and still I get a not delivered message

    Since I have upgraded to iOS 7 messages on my ipad will not send. I get a red message saying not delivered I have tried everything suggested so far, still nothing.

    I'm having the same problem with my Wife's old iPhone 3G.  It's battery went completely dead and now all it does when I hit the power button is shows the screen that shows the animated charger/battery saying to plug it into a charger and then it shuts off.  The thing is, it's plugged into a charger, I've tried several, I've tried getting into DFU mode to restore 4.2.1 and see if that would help but I can't get into DFU mode because the iPhone shuts off before it gets a chance to load I suppose.
    If I find a solution that works to get the iPhone out of this quirk/bug mode it's in right now from the battery dying, I will post it here so you can fix your iPhone as well.
    Best of luck with finding your solution to fix this!  We're both probably going to need it because so far I've searched for the answer for the past hour and still can't get it to even start charging.
    -James

  • BBM not delivering messages

    Is there a server problem going on at the moment? Since last night when I've been sending bbm's I get a check mark that it's been sent, but it doesn't say it's delivered for 15-20 minutes. There obviously seems to be a problem since my phone is sending messages otherwise and the other people are recieving messages fine. To me, it seems like a server problem is occurring. Please let me know. I've also updated BBM and rebooted my phone a number of times and it's still not working.

    no need to double or cross post in the forums... your earlier post has been answered.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Not delivered message when trying to send a message

    I know the phone number is correct...Just won't deliver...using the "message" icon

    Try sending it as a regular text message... turn off iMessage.

  • IMessage not delivering message

    When I try sending a message it has a red explanation point and says not delivered

    No, it's not that. It's a bug. Maybe restart your iPod touch if that dosent work restart your internet. If BOTH dont work, contact Apple Genius Bar [Not sure if its only mac?] or go to a nearby apple Licensed Retail Store and they should be able to fix it.

  • SharePoint 2010 email enabled groups do not deliver messages to group members

    I configured my SP2010 farm to send and receive email propperly.  How do I know this?
    Because I receive alerts from SharePoint all the time.
    Because I can email enable a library and I can send documents to it successfully
    Because I can look at AD and see that the contacts have been created in the appropriate OU
    So the problem is only with the SharePoint groups and corresponding AD Distribution List.
    I can assign an email addres to a SharePoint group from the SP interface
    I can verify that the Universal Group is created in AD as expected
    BUT, email sent to the group email address is not sent to the members of the group. I also know this doesn't happen because the distribution list in AD has no members.  If I add a member to it manually from the AD Computer and Users console then the
    member get the message.
    The bottom line is that SharePoint is not pupulating or updating the Distribution List in AD as it should. 
    I can rule out permissions because the the DL is created and the FARM Account and APP Pool account both have FULL Control over the OU where those contacts and Groups are created.
    Does any one have a light to shed on this?
    Thanks a lot,
    Fernando

    Great article here:
    http://joyknows.wordpress.com/2011/01/12/sharepoint-alerts-not-working-for-group-recipients/
    Unchecking “Require that all senders are authenticated” on the mail enabled group in Exchange Management Console, allowed Alerts to come through to AD groups using
    SharePoint.
    I struggled with this but the steps in the post resolved it for me.
    Thanks.

  • Why cant my iphone 5 send text messages without getting and not delivered message?

    Whenever you send a text message it comes up non-deliverable. Is there a solution for that?

    Have you turned on SMS in settings >> messages?

Maybe you are looking for