ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum IndexIBM MQ API Supportthree client get message not equally

Post new topicReply to topic
three client get message not equally View previous topic :: View next topic
Author Message
liuql2
PostPosted: Mon May 22, 2017 12:55 am Post subject: three client get message not equally Reply with quote

Newbie

Joined: 23 Jan 2016
Posts: 2

Hello,

I have three mq clients process, each with a mq connection, these three mq connection connect to the same queue in a general queue manager.
the three client get messages equally before. but these days they are not equally get messages, one client get message crazy(with cpu 100%), the other two get very little message.
how can i solve the problem.
the three client open queue with parameters like
MQLONG gMqRcvOpt = (MQOO_INPUT_SHARED | MQOO_FAIL_IF_QUIESCING | MQOO_INQUIRE);
MQOPEN(pMqInfo->getConn, &mqod, gMqRcvOpt, &pMqInfo->getQueue, &state, &reason);
Back to top
View user's profile Send private message
PaulClarke
PostPosted: Mon May 22, 2017 2:41 am Post subject: Reply with quote

Sentinel

Joined: 17 Nov 2005
Posts: 853
Location: New Zealand

It is by design that MQ will try to keep one thread 'hot' and let the others swap out. It is far more efficient that way that to constantly be thread switching.

However, if you really want to avoid this processing and have a more even distribution then Google 'FastTransferOrder' and MQ and you'll find the subject has been discussed many times before. For example....

https://developer.ibm.com/answers/questions/236887/how-will-messages-be-delivered-if-multiple-mqgets.html

or here on this very forum

http://www.mqseries.net/phpBB2/viewtopic.php?t=69348&sid=30262e101e3eff0a641d23ad2ab70309

Cheers,

Paul.
_________________
Paul Clarke
MQGem Software
www.mqgem.com
Back to top
View user's profile Send private message Visit poster's website
zpat
PostPosted: Mon May 22, 2017 3:44 am Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5515
Location: UK

Is "FastTransferOrder" properly documented by IBM yet?
_________________
Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error.
Back to top
View user's profile Send private message
liuql2
PostPosted: Mon May 22, 2017 7:29 pm Post subject: Reply with quote

Newbie

Joined: 23 Jan 2016
Posts: 2

thanks very much.
we have found our client have changed, fetch too much then it can process.
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexIBM MQ API Supportthree client get message not equally
Jump to:



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP


Theme by Dustin Baccetti
Powered by phpBB 2001, 2002 phpBB Group

Copyright MQSeries.net. All rights reserved.