MQ消息消失
我能够浏览特定队列管理器的队列中的消息。当时我的监听器关闭端口来处理消息。所以我将侦听器端口设置为 UP 并重新启动服务器。现在,我找不到任何消息。
出现这个问题的原因是什么?请帮忙。
谢谢 :))
I was able to browse the messages in the queues of a particular Queue Manager. At that time my listener ports down to process the messages. So I turned my listener ports to UP and restarted the servers. Now, I can not find any of the messages.
What is the reason for this problem? Please help.
Thanks :))
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这里有两种可能性。 Yeradis 指出的第一个问题是消息已过期。您可以在浏览消息时简单地验证这一点。查看过期字段。
另一种可能性是您的侦听器正在使用消息,然后丢弃它们或重新排队它们。发现一个侦听器消费消息然后因为它们与选择器不匹配或立即失败一些其他验证并默默地丢弃它们的情况并不少见。很难诊断这种运行跟踪的不足。如果您安装了 MO71 SupportPac,您可以实时查看队列统计信息,了解有多少 GET 操作针对队列执行。
如果侦听器回退消息直至超过回退计数阈值,然后将消息移至异常队列或 DLQ,则可以将消息重新排队。在这种情况下,消息将在这些队列之一中找到。
There are two possibilities here. The first as Yeradis has noted is that the messages expired. You can verify this simply enough while browsing the messages. Look at the expiry field.
The other possibility is that your listener is consuming the messages and then either discarding them or requeuing them. It is not uncommon to find a listener that consumes messages and then, either because they did not match a selector or failed some other validation immediately and silently discards them. It is difficult to diagnose this short of running a trace. If you have the MO71 SupportPac installed, you can look at the queue stats in real time to see how many GET operations were executed against the queue.
Messages can be requeued if the listener backs the message out until the backout count threshold is exceeded and then moves the message to an exception queue or to the DLQ. In this case the messages will be found in one of these queues.
您应该检查您的消息或队列是否没有过期时间。
You should check if there is not an expiration time on your messages or your queue.