"Stuck" remote messages

We have our monitoring software setup to query and chart the "Actual" number of messages (as reported by "imqcmd query bkr" and recently noticed that this number is remaining at a higher minimum value. Meaning, it never drops to 0 as though there is a pile of messages that cannot be processed and they are sitting in the queue
Our setup is a cluster of two brokers (not HA) and the cluster.properties file looks like this:
cluster.properties
imq.cluster.brokerlist=hobgoblin,smithwicks
imq.cluster.masterbroker=hobgoblinWe have 10 queue destinations varying in volume from dozens to hundreds of thousands of messages a day. Three of these queues (all relatively high volume) exhibit this issue. I will use a particular queue named "networkActivity" in the following commands.
When I run imqcmd query dst -t q -n networkActivity on hobgoblin (the master broker) the relevant piece of output is:
Current Number of Messages           
    Actual                            75
    Remote                            75
    Held in Transaction               0When I run the same on smithwicks it is:
Current Number of Messages           
    Actual                            284
    Remote                            284
    Held in Transaction               0The "Actual" number will occasionally increase when we are under heavy load but as we catch up on the load that number will only decrease to match the "Remote" number.
The other 7 queues do not have this issue and some of those do equally heavy volume. New messages continue to be processed fast on all queues.
What does this Remote number mean? I have struggled to find information in the documentation or online.
We recently switched to OpenMQ and it has been utterly stable and performant compared to our previous provider (where queue lockups and shutdown due to slow consumers was commonplace). Very happy with it in general. We are planning to move to an HA setup in the near future - would this issue still occur when using HA?
These "Remote" message counts are relatively small but they do seem to drift upward a small amount each day visually establishing a new baseline in our monitoring charts.
Any help is greatly appreciate. I can easily provide any other information that would be helpful - logs, imqcmd output, server information, etc.

I am surprised I found something not obvious in the docs because frankly the OpenMQ documentation is some of the best I have ever run into.
Fortunately/Unfortunately we don't have this issue any longer so I cannot collect more information. The remote counts dropped to zero when I bounced OpenMQ one day. If that means we lost these particular messages it isn't a big deal for us.
Our previous provider (ActiveMQ) had literally millions of backed up messages when we migrated to OpenMQ. A colleague here wrote a tool that pulled the messages off the AMQ queues and fed them to OpenMQ (OpenMQ proceeded to shred through those things) all at once and the remote number happened after that huge crush of old messages. I do not know if that is related at all but I am willing to chalk it up to a possibility as some of those AMQ messages were really old. There could have even been messages so old that our consumer logic didn't know how to handle them anymore.
Have had no issues since and we switched to an HA configuration this morning and everything is running perfectly.

Similar Messages

  • Send Commit to message stuck in "Message Scheduled" status

    Hello,
    I generated some messages using ABAP Proxy. However, the commit work never happened in the program that created the message. Now these messages are stuck in "Message Scheduled" status. How can I push the message forward. Can I trigger a commit? If so, how?
    Regards
    Cerish

    Hi Cerish,
    Are you getting this status in the XI ? If so, go to Queue Monitor and try to activate the same.
    /people/sap.user72/blog/2005/11/29/xi-how-to-re-process-failed-xi-messages-automatically
    Also check the SXMB_MONI of Application System(R/3) if you have a access about is proxy message is executed or not .
    If the status is restart not possible, then you need to reprocess that.
    Hope this helps,
    regards,
    moorthy

  • Messages stuck in "Messages Pending" column of a JMS queue.

    Hi
    Is there any way to retrive the messages which are stuck in "Messages Pending" column of a JMS queue.
    weblogic 8.1 SP5 version.
    Thanks

    there is some possibility to prevent the Pending Message or to automatically purge them on WL 9.x or WL 10.x?WebLogic JMS provides "message management" console, scripting, and mbean features to view and manipulate messages in a destination. You can search for "message management" in this newsgroups for more information - here's a good post: Re: WLST Script Help It also provides features for automatically moving problem messages to an error destination, expiring old messages, and/or deleting messages thave have exceeded a configured redelivery limit. I suggest reading through our feature list in the documentation, see "Value-Added WebLogic Server JMS Features" in the [ Information Roadmap | http://download.oracle.com/docs/cd/E15523_01/web.1111/e14529/messaging.htm#sthref23 ].
    Note that it's usually best to try and understand why messages are marked pending and fix the underlying reason instead of purging such messages. Messages are normally pending for a valid reason, and most use cases can't tolerate arbitrarily losing a message.
    Tom

  • Getting remote messaging to work with Java/Spring and Flex

    I am trying to get remote messaging working on a Flex client with a Java/Spring backend.
    I have the channel is setup on the server as such:

    channel-definition id="long-polling-channel"
    class="mx.messaging.channels.AMFChannel">
    <endpoint
    url="http://{server.name}:{server.port}/{context.root}/messagebroker/amflongpolling"
    class="flex.messaging.endpoints.AMFEndpoint" />
    <properties>
    <!-- Values for near-real time messaging -->
    <polling-enabled>true</polling-enabled>
    <polling-interval-millis>0</polling-interval-millis>
    <wait-interval-millis>-1</wait-interval-millis>
    <max-waiting-poll-requests>
    10
    </max-waiting-poll-requests>
    </properties>
    </channel-definition>
    In the Spring context, I am setting up the MessageBroker, MessageTemplate, and some custom wrapper code:
    <? 
    xml version="1.0" encoding="UTF-8"?>< 
    beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:flex="http://www.springframework.org/schema/flex" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
    http://www.springframework.org/schema/flex
    http://www.springframework.org/schema/flex/spring-flex-1.0.xsd" >
    <flex:message-broker id="messageServiceBroker" />
    <flex:message-destination id="event-bus"
    message-broker="messageServiceBroker" channels="long-polling-channel"
    message-time-to-live="1000"
    subscription-timeout-minutes="5"
    throttle-inbound-max-frequency="500" throttle-inbound-policy="ERROR"
    throttle-outbound-max-frequency="500" throttle-outbound-policy="IGNORE" />
    <bean id="defaultMessageTemplate" class="org.springframework.flex.messaging.MessageTemplate">
    <property name="defaultDestination" value="event-bus" />
    <property name="messageBroker" ref="messageServiceBroker" />
    </bean>
    <bean id="MessagingServices" class="com.bofa.esm.utility.messaging.MessagingServices">
    <property name="messageTemplate" ref="defaultMessageTemplate" />
    <property name="destinationName" value="event-bus" />
    <property name="scheduler" ref="PersistentQuartzScheduler" />
    </bean></ 
    beans>
    The custom wrapper code is insignificant, but it basically creates a thread and posts a custom context over and over every minute.  The actual message is posted with this bit of code:
         messageTemplate.send(msgCtx);
    On the Flex side, I create a Channel and ChannelSet like thus:
    public  
    static function getMessageChannelSet():ChannelSet{ 
    if(messageChannelSet == null){messageChannelSet =
    new ChannelSet();
    //e.g. 'http://{server.name}:{server.port}/{context.root}/messagebroker/amfpolling';
    var messageURL:String = getBaseUrl() + MESSAGE_URL; 
    var channel:AMFChannel = new AMFChannel(MESSAGE_CHANNEL_NAME,messageURL);messageChannelSet.addChannel(channel);
    return channelSet;}
    And then, latter I create a Consumer and add the channelset to it:
    var  
    _messageConsumer:Consumer = new Consumer(); 
    var msgChannel:ChannelSet = RemotingUtility.getMessageChannelSet();
    var encrypted:Object = this.encrypt(_sessionModel.username, _sessionModel.password); 
    var token:AsyncToken = msgChannel.login(encrypted.userId, encrypted.password); 
    _messageConsumer.channelSet = msgChannel;
    _messageConsumer.destination =
    "event-bus";_messageConsumer.addEventListener(MessageEvent.RESULT,
    this.onMessage);
    The problem is, I dont get the messages from the server.  In fact, from what I can tell by the logs when I post a message from the server, it doesn't appear that anything is listening to the channel:
    09:32:03,106 INFO [MessagingServices] Posting message...
    09:32:08,184 INFO [STDOUT] [BlazeDS]Before invoke service: message-service
    incomingMessage: Flex Message (flex.messaging.messages.AsyncMessage)
    clientId = CC2B0D5D-B00A-CD8B-CE43-0430C8CC10DF
    correlationId = null
    destination = event-bus
    messageId = CC3211B4-F80E-15FE-076C-00C963ED5D01
    timestamp = 1278595928184
    timeToLive = 0
    body = com.bofa.esm.utility.messaging.SimpleMessageContext@159a771
    09:32:08,200 INFO [STDOUT] [BlazeDS]Before invoke service: message-service
    incomingMessage: Flex Message (flex.messaging.messages.AsyncMessage)
    clientId = CC2B0D5D-B00A-CD8B-CE43-0430C8CC10DF
    correlationId = null
    destination = event-bus
    messageId = CC3211B4-F80E-15FE-076C-00C963ED5D01
    timestamp = 1278595928184
    timeToLive = 0
    body = com.bofa.esm.utility.messaging.SimpleMessageContext@159a771
    09:32:08,200 INFO [STDOUT] [BlazeDS]Sending message: Flex Message (flex.messaging.messages.AsyncMessage)
    clientId = CC2B0D5D-B00A-CD8B-CE43-0430C8CC10DF
    correlationId = null
    destination = event-bus
    messageId = CC3211B4-F80E-15FE-076C-00C963ED5D01
    timestamp = 1278595928184
    timeToLive = 1000
    body = com.bofa.esm.utility.messaging.SimpleMessageContext@159a771
    to subscribed clientIds: []
    09:32:08,200 INFO [STDOUT] [BlazeDS]Sending message: Flex Message (flex.messaging.messages.AsyncMessage)
    clientId = CC2B0D5D-B00A-CD8B-CE43-0430C8CC10DF
    correlationId = null
    destination = event-bus
    messageId = CC3211B4-F80E-15FE-076C-00C963ED5D01
    timestamp = 1278595928184
    timeToLive = 1000
    body = com.bofa.esm.utility.messaging.SimpleMessageContext@159a771
    to subscribed clientIds: []
    09:32:08,200 INFO [STDOUT] [BlazeDS]After invoke service: message-service; execution time = 0ms
    09:32:08,200 INFO [STDOUT] [BlazeDS]After invoke service: message-service; execution time = 0ms
    09:32:08,200 INFO [STDOUT] [BlazeDS]After invoke service: message-service
    reply: null
    09:32:08,200 INFO [STDOUT] [BlazeDS]After invoke service: message-service
    reply: null
    09:32:12,075 INFO [STDOUT] [BlazeDS]Before invoke service: message-service
    incomingMessage: Flex Message (flex.messaging.messages.AsyncMessage)
    clientId = CC2B0D5D-B00A-CD8B-CE43-0430C8CC10DF
    correlationId = null
    destination = event-bus
    messageId = CC3236D0-7B0D-182C-5632-C84FB4D1E215
    timestamp = 1278595932075
    timeToLive = 0
    body = com.bofa.esm.utility.messaging.SimpleMessageContext@1a6595b
    09:32:12,075 INFO [STDOUT] [BlazeDS]Before invoke service: message-service
    incomingMessage: Flex Message (flex.messaging.messages.AsyncMessage)
    clientId = CC2B0D5D-B00A-CD8B-CE43-0430C8CC10DF
    correlationId = null
    destination = event-bus
    messageId = CC3236D0-7B0D-182C-5632-C84FB4D1E215
    timestamp = 1278595932075
    timeToLive = 0
    body = com.bofa.esm.utility.messaging.SimpleMessageContext@1a6595b
    09:32:12,075 INFO [STDOUT] [BlazeDS]Sending message: Flex Message (flex.messaging.messages.AsyncMessage)
    clientId = CC2B0D5D-B00A-CD8B-CE43-0430C8CC10DF
    correlationId = null
    destination = event-bus
    messageId = CC3236D0-7B0D-182C-5632-C84FB4D1E215
    timestamp = 1278595932075
    timeToLive = 1000
    body = com.bofa.esm.utility.messaging.SimpleMessageContext@1a6595b
    to subscribed clientIds: []
    09:32:12,075 INFO [STDOUT] [BlazeDS]Sending message: Flex Message (flex.messaging.messages.AsyncMessage)
    clientId = CC2B0D5D-B00A-CD8B-CE43-0430C8CC10DF
    correlationId = null
    destination = event-bus
    messageId = CC3236D0-7B0D-182C-5632-C84FB4D1E215
    timestamp = 1278595932075
    timeToLive = 1000
    body = com.bofa.esm.utility.messaging.SimpleMessageContext@1a6595b
    to subscribed clientIds: []
    09:32:12,075 INFO [STDOUT] [BlazeDS]After invoke service: message-service; execution time = 0ms
    09:32:12,075 INFO [STDOUT] [BlazeDS]After invoke service: message-service; execution time = 0ms
    09:32:12,075 INFO [STDOUT] [BlazeDS]After invoke service: message-service
    reply: null
    09:32:12,075 INFO [STDOUT] [BlazeDS]After invoke service: message-service
    reply: null
    Shouldn't the "subscribed clientIds: []" have something listed as subscribed?  What am I missing?

    I made some modifications to the code section that registers the Consumer:
      Alert.show(
    "onRegister running","AppShellMediator",Alert.OK); 
      var _messageConsumer:Consumer = new Consumer(); 
      var msgChannel:ChannelSet = RemotingUtility.getMessageChannelSet();  _messageConsumer.channelSet = msgChannel;
      _messageConsumer.destination =
    "event-bus";  _messageConsumer.addEventListener(MessageEvent.RESULT,
    this.onMessage);  _messageConsumer.subscribe(
    "MessagingClient"+Math.random()); 
    if(_messageConsumer.connected)      Alert.show(
    "Message Channel is connected","AppShellMediator",Alert.OK); 
      if(_messageConsumer.authenticated)      Alert.show(
    "Message Channel is authenticated","AppShellMediator",Alert.OK); 
      if(_messageConsumer.subscribed)      Alert.show(
    "Message Channel is subscribed, clientId: "+_messageConsumer.clientId,"AppShellMediator",Alert.OK);
    I am now calling the subscribe method, then testing to see if the consumer is connected, authorized, and subscribed.  The first two return True, the last one does not.  So, despite the call to subscribe(), the Consumer is not subscribed.  Is there a way to figure out why?  Possibly there was an error somewhere?

  • HT1414 i have been to apple store to restore settings on my iphone, they also did up to date back up, its now stuck on message saying ... it may take a few minutes to set up your apple ID .... it has been like that now for 2 hours?

    I have been to Apple store today for them to restore settings on my iphone, they also backed it up, now it is stuck with message 'it may take a few minutes to set up your Apple ID' after putting in my apple ID and password?  It has been like this now for two hours??

    in icloud I think

  • Unable to access inbox--stuck on message view

    My email is stuck on message view or something. When I click on the icon, it pulls up the same message without any icons/buttons to back out to get to inbox. I can delete the message to get to the next message but am unable to pull the inbox up.
    Any suggestions? Did I accidentally change the view setting?
    Thanks!

    Did you restore your iPhone with iTunes from your iPhone's backup, or as a new iPhone or not from your iPhone's backup?
    Email account settings are included with your iPhone's backup. If there is a problem with your iPhone's backup or with the email account settings included with your iPhone's backup, restoring from your iPhone's backup will also restore the problem.
    If no change after an iPhone reset (1.), deleting and recreating the account, and restoring your iPhone with iTunes from your iPhone's backup, the next step is restoring your iPhone as a new iPhone or not from your iPhone's backup followed by recreating the account.

  • TS3992 My iPad is stuck on message "not enough storage" I've bought more iCloud space, but my device is still stuck on the message and wont respond to the Close or Settings on the touchscreen!  Can anyone help?

    My iPad is stuck on message "not enough storage", and does not respond to touchscreen Close or Settings.  I've bought more iCloud space and tried to get to Settings again to see if I can resume a backup, but no luck.  I'm still in the same boat. Cannot even power off the iPad!!  Can anyone out there help?  I deleted the Backup off the icloud via my PC and hoped this would start off a new one!

    iCloud storage will not help you with your problem. You need to remove data from the iPad to make more room on your iPad available.
    Allan

  • IPad with IOS 6.0.1 stuck on message from Find my iPhone. What to do?

    iPad with IOS 6.0.1 stuck on message from Find my iPhone. What to do?

    Quit the app completely. Go to the home screen first by tapping the home button. Double tap the home button and the task bar will appear with all of your recent/open apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner of the app that you want to close. Tap the home button or anywhere above the task bar.
    Or...
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.

  • I have windows vista  and can open itunes but cannot access store anymore it tries but stops like it's stuck no message comes up .I would be grateful of any help. thankyou

    I have windows vista and can access my itune downloads but when I try to access the store it thinks about it and then stops - the bar is stuck halfway across.  I get no message come up.  Desperate to access the store but am at a loss what to do. I am a novice on the computer so an idiot's guide for me would be welcome.  many thanks, regards Lesley

    I have taken it back to the Apple store genius bar, but they say they don't see anything wrong. Well unless you use it all day and experience the problems when they happen, you wont see anything wrong. But there are lots wrong with it. But this would be the same store as I purchased the phone. And they backed up my old Iphone 4, but were not able to get anything to load back onto my new phone. So, I lost pretty much everything. But over time, some of my contacts have started showing up, although i am still missing over 800 of them.

  • How to process stucked holding messages in the Adapter Engine.

    Hi experts,
    This question is may be familier to all...
    There are thousands of messages are in holding status in the Adapter engine in RWB.
    I tried to found system error in these messages. There is no system error from the last in my investigation. I tried to restart of the communication channels of the combination of these messages. But it is also not use to fix this problem.
    Instead of the restart of the Java engine please let me know is there any possibility to fix this issue.
    Regards
    Mahesh

    Hello Mahesh
    You can try restarting some of the XI services (e.g. com.sap.aii.af.svc) but usually a java restart is required to free up these blocked threads/queues.
    Most likely these messages are in Holding status because there is a blockage in one of the Adapter queues. This can be monitored in the RWB
    -> Component Monitoring                                                
    -> Adatper Engine XIP                                                  
    -> Engine Status                                                       
    -> Additional Data   
    Find out what adapter queues are causing the blockage and increase the number of threads/queues available to it. This will help prevent the issue occuring again.
    See note #791655 Documentation of the XI Messaging System Service Properties, for an explaination of the queues.
    See these blogs for more details:
    1) /people/kenny.scott/blog/2007/08/20/messaging-system-queue-properties-after-xi-30-sp19-xi-70sp11
    2) /people/kenny.scott/blog/2008/12/05/xipi-file-and-jdbc-receiver-adapter-performance-and-availability-improvements
    Ensure note #937159 XI Adapter Engine is stuck, has been applied. 
    Regards
    Mark

  • Configure/Access remote Message Queue (Open MQ)

    Hi,
    I am new to JMS and Message Queue. I have installed Sun's Open Message Queue on my system.I have created ObjectStore and Destination(Queue) and using java program to insert and fetch messages.
    Following are the details:
    1. Created ObjectStore MyObjectStore with following properties:-
    java.naming.factory.initial=com.sun.jndi.fscontext.RefFSContextFactory
    java.naming.provider.url=file:///c:/tmp
    2. Created ConnectionFactory MyConnectionFactory and Destination MyQueue
    3. Code to access above queue:
    Hashtable env;
        Context     ctx = null;
        env = new Hashtable();
        env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.fscontext.RefFSContextFactory");
        env.put(Context.PROVIDER_URL, "file:///c:/tmp");
        ConnectionFactory cf=(javax.jms.ConnectionFactory) ctx.lookup("MyConnectionFactory");
        Queue queue=(javax.jms.Queue)ctx.lookup("MyQueue");
        Connection connection = cf.createConnection();
        Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
        MessageProducer msgProducer = session.createProducer(queue);
        MessageConsumer msgConsumer = session.createConsumer(queue);
        ....................My problem is that I am able to access Message Queue on local machine only. I don't know how i can configure my MQ to be accessed on network or/and how to look up for MQ from a remote machine in network.
    Can anybody help me on this.
    Regards
    Edited by: Arpit.Purohit on Apr 8, 2009 4:49 AM
    Edited by: Arpit.Purohit on Apr 8, 2009 4:49 AM

    Arpit,
    Yes, this is because you have chosen to use com.sun.jndi.fscontext.RefFSContextFactory as the JNDI provider in which to store your destination and connection factory objects.
    The Sun Java System Message Queue 4.3 Administration Guide has a section [File-System Object Stores|http://docs.sun.com/app/docs/doc/820-6740/aeogx?a=view] about this:
    +"Message Queue ... supports the use of a directory in the local file system as an object store for administered objects. While this approach is not recommended for production systems, it has the advantage of being very easy to use in development environments. Note, however, that for a directory to be used as a centralized object store for clients deployed across multiple computer nodes, all of those clients must have access to the directory. In addition, any user with access to the directory can use Message Queue administration tools to create and manage administered objects"+
    So if you place your JNDI store in a shared directory visible to other machines rather than C:/tmp you will be able to access it from other machines.
    The ideal solution is to use an LDAP JNDI provider. See the section [LDAP Server Object Stores|http://docs.sun.com/app/docs/doc/820-6740/aeogw?a=view] in the Administration Guide.
    Note that this issue relates to the administered objects used by MQ only. The MQ broker itself will be available from anywhere on the network and the messages themselves will stored in the broker's own message store.
    Nigel

  • IPad stuck on message "hasn't been updated in 3 weeks."  I can't get out.

    My new iPad is stuck with a box "iCloud Backup: This iPad hasn't been backed up in 3 weeks..."  I'm frozen out.  The "OK" button doesn't work.

    Try Here  >  https://discussions.apple.com/message/17090736#17090736

  • Screen orientation stuck in messages

    I updated to the new operating system and my screen in messages is stuck in landscape orientation.  Has anyone had this happen and how did you fix it?

    I had the same problem.  I reset the iphone by holding down the two buttons for 5 seconds until the Apple logo shows to reboot the phone and that fixed it, good luck

  • Mail gets stuck importing messages from Time Machine when setting up new Lion Macbook Pro

    I just used time machine to set up my new 13-in mid-2012 Macbook Pro and am having trouble setting up the Mail application. It opens fine, asks me to import my messages, takes about an hour and a half, then gets stuck at "less than a minute." I then have to cancel out, and restarting causes the whole process to start over.
    I've tried deleting the Envelope Index, but that didn't help. I also tried restarting the computer. Hitting "Cancel" instead of "Continue" to try to set up Mail without importing my messages just exits the application.
    Any ideas why it hangs at the very end, and how I can avoid this?

    Did anyone find a solution here?
    This has happened to me after numerous crashes over the years and just did again. Seems to be a recurring problem when dealing with lots of mail messages.
    Today, after 3 attempts, it still hangs up on 50,951 of 166,972 (yes there are a lot and for a reason).

  • Outgoing Message Stuck, but message still sends

    I have been having a problem with my email through Mail. The message will send, but show as an 'Outgoing Message'. It will never clear or show as being sent. If I close out of Mail, which I relaunch, it will send again (and go through the whole process again with getting stuck).
    I am also not able to receive emails.
    All is OK with the connections. I can access my email through the web server and through my MacBook.
    It is only a problem on my iMac.
    Not sure if this was a trigger, but the problem started after I tried sending a file that was way too big off this computer. I stopped the email and deleted it. I have since gone to the web program and deleted all trash files.
    It is like my computer is not communicating properly with the Mac server. (but it obviously is since the emails are sending)
    Any help or direction would be greatly appreciated!
    Thanks!

    this is not something that belongs in osx server sections since its about your mail client.
    but, try to rebuild the mail box. (menu mailbox -> rebuild at the bottom.
    if that doesn't work, restart computer and go in to your home folder, > Library -> Mail, trash the file "envelope index". THEN start mail, let it wait for it to rebuild the mailboxes.
    If that doesn't work, i'm out of ideas. good luck.

Maybe you are looking for