|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQ Connect, Open and Close |
« View previous topic :: View next topic » |
Author |
Message
|
maxyen |
Posted: Thu Jun 12, 2003 6:47 pm Post subject: MQ Connect, Open and Close |
|
|
Newbie
Joined: 08 Aug 2002 Posts: 8
|
We have multiple on-line users putting messages in a queue and I am wondering how much overhead is there in connecting, opening and closing a queue. For every put operation, the program opens, puts and closes the queue.
Is the overhead substancial enough to cause performance degradation?
The platform used is an AS400.
Thank-You
Max |
|
Back to top |
|
 |
zpat |
Posted: Fri Jun 13, 2003 1:33 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
It's certainly possible.
In particular the open operation would perform security checks.
How many times a second is this happening? |
|
Back to top |
|
 |
muralidhar |
Posted: Fri Jun 13, 2003 3:52 pm Post subject: |
|
|
 Acolyte
Joined: 28 Feb 2002 Posts: 50
|
If you are putting a few messages on the queue, then opening and closing the queue is better. Several open connection is an overhead on the server. It is not worth for low volume. In high volume environments, you might want to have a connection open. |
|
Back to top |
|
 |
bduncan |
Posted: Sat Jun 14, 2003 8:52 am Post subject: |
|
|
Padawan
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
|
If I recall some performance tests I did a few years back, there was nearly an order of magnitude difference between doing connect/open/put 1 message/close/disconnect for 100 messages, versus connect/open/put 100 messages/close/disconnect. Obviously as the number of messages in the batch decreased the performance difference decreased, and as the batch size got bigger (simulating a high volume system) the performance difference increased because the overhead in one case is constant while the other is linear. _________________ Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator |
|
Back to top |
|
 |
oz1ccg |
Posted: Sat Jun 14, 2003 3:51 pm Post subject: |
|
|
 Yatiri
Joined: 10 Feb 2002 Posts: 628 Location: Denmark
|
If you want to do the open-put-close, you should consider using MQPUT1, because of some internal MQ-overhead.
But anyway on every MQOPEN, mq have to do security checking, which is one of the most expensive operations...
Anyway you should consider doing your own performace test, so you can obtain a guidline for the performance difference.
Just my $0.02  _________________ Regards, Jørgen
Home of BlockIP2, the last free MQ Security exit ver. 3.00
Cert. on WMQ, WBIMB, SWIFT. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|