Yash
Yash

Reputation: 1008

MQ locking slows down reader program

If I keep 500 messages in a Websphere MQ queue and run by program that consumes the queue, it takes about 2-3 ms per message.

If I keep the consumer program running and keep putting messages on to the queue at the rate of 200 per sec, the reading program slows down drastically, taking about 200 ms per message.

I suspect some kind of locking that affects the consumer program. Are there any ways to work around this?

Thanks,

Yash

Upvotes: 0

Views: 239

Answers (1)

David Awerbuch
David Awerbuch

Reputation: 356

I am sure Morag will provide a much more technically detailed response, after you provide more information, but based solely on what you have presented -- The queue manager locks the queue access for single threaded access to the control blocks while a new message is being added, the overhead is in part dependent on the queue depth at the time. A deeper queue may take longer to add a message to, especially if there is a non-blank correlid (insertion into sorted linked-list).

Upvotes: 2

Related Questions