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 Index » General Discussion » MQ Connect, Open and Close

Post new topic  Reply to topic
 MQ Connect, Open and Close « View previous topic :: View next topic » 
Author Message
maxyen
PostPosted: Thu Jun 12, 2003 6:47 pm    Post subject: MQ Connect, Open and Close Reply with quote

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
View user's profile Send private message
zpat
PostPosted: Fri Jun 13, 2003 1:33 am    Post subject: Reply with quote

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
View user's profile Send private message
muralidhar
PostPosted: Fri Jun 13, 2003 3:52 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
bduncan
PostPosted: Sat Jun 14, 2003 8:52 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address
oz1ccg
PostPosted: Sat Jun 14, 2003 3:51 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » MQ Connect, Open and Close
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.