简体   繁体   English

使用com.ibm.mq.jar在AIX上将消息写入MQ-性能降低

[英]Writing messages to MQ on AIX using com.ibm.mq.jar - slow performance

We are using WebSphere MQ client adapters on an AIX box to send messages via MQ. 我们正在AIX盒子上使用WebSphere MQ客户端适配器来通过MQ发送消息。 We send them to the outbound remote queue on the same box and find it quite slow to get to their destination - a 27mb file takes 3 minutes to run the MQQueue.put command. 我们将它们发送到同一框上的出站远程队列,发现到达它们的目的地相当慢-一个27mb的文件需要3分钟才能运行MQQueue.put命令。

Bizarrely we can change the send parameters to send to an outbound remote queue on an entirely different box and it will send the file in 2 seconds. 奇怪的是,我们可以更改send参数以发送到完全不同的盒子上的出站远程队列,它将在2秒内发送文件。 Similarly coming back to this box from elsewhere will be quick. 同样,从其他地方回到此框也将很快。 And sending from another box to the outbound remove queue on that same box is also slow. 从另一个邮箱发送到同一邮箱的出站删除队列也很慢。

So in summary the problem appears to be when sending to the outbound remote queue on the same box - we have tried specifying the destination by dns name, ip address, 127.0.0.1 etc, but no luck. 因此,总而言之,问题似乎出在发送到同一邮箱的出站远程队列上时-我们尝试通过dns名称,ip地址,127.0.0.1等指定目的地,但是没有运气。

Would be grateful for any advice. 将不胜感激任何意见。

Try see if tcp_nodelayack makes a difference on the box. 尝试看看tcp_nodelayack是否在包装盒上有所作为。 If you are at a new enough MQ level (which one are you at?) then you can just set MQ_SET_NODELAYACK to affect just MQ or alternatively (or for a quick test) just set it system wide on AIX with the 'no' command listed in the first link below. 如果您处于足够新的MQ级别(您在哪个级别?),则可以将MQ_SET_NODELAYACK设置为仅影响MQ,或者也可以(或进行快速测试)在AIX上使用列出的“ no”命令在整个系统范围内进行设置。在下面的第一个链接中。

See http://www-01.ibm.com/support/docview.wss?uid=swg21320862 FYI apar which adds the MQ specific env var option http://www-01.ibm.com/support/docview.wss?uid=swg1IZ43635 请参阅http://www-01.ibm.com/support/docview.wss?uid=swg21320862 FYI apar,它添加了MQ特定的env var选项http://www-01.ibm.com/support/docview.wss? UID = swg1IZ43635

As an aside I'd also recommend trying MQ v8 client to stop MQ playing with the buffer sizes and let the o/s default them, but from the sounds of your problem I would not be surprised if the above helps. 顺便说一句,我还建议您尝试使用MQ v8客户端来停止MQ使用缓冲区大小,并让操作系统默认使用它们,但是从您的问题的声音来看,如果上述帮助您不会感到惊讶。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM