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 » IBM MQ Installation/Configuration Support » MaxChannels

Post new topic  Reply to topic
 MaxChannels « View previous topic :: View next topic » 
Author Message
bearsonli
PostPosted: Wed Apr 21, 2004 8:51 am    Post subject: MaxChannels Reply with quote

Novice

Joined: 02 Mar 2004
Posts: 16

I understand that we can set the MaxChannels and MaxActiveChannels in the qm.ini file.

Here's my question: is there anyway I can query MQ, after the qmgr is started, on the value of the MaxChannels (just to make sure whatever value given in the qm.ini is taken by MQ when the qmgr is started)?

Thanks.
Back to top
View user's profile Send private message
mqonnet
PostPosted: Wed Apr 21, 2004 10:56 am    Post subject: Reply with quote

Grand Master

Joined: 18 Feb 2002
Posts: 1114
Location: Boston, Ma, Usa.

To answer your question on a different note. Why do you need to do that. The change is imminent after a qmgr restart. I would say, easiest way to confirm that, if you need to(even though you dont need to) is to connect as many clients as the number you defined in qm.ini file without disconnecting. If you are able to, that would mean your qmgr did take in the new changed value from qm.ini.

Remember it may take 10times the time to write an app(if there is a way) and find this out, as opposed to starting as many instances of amqsputc.

Cheers
Kumar
Back to top
View user's profile Send private message Send e-mail Visit poster's website
bearsonli
PostPosted: Wed Apr 21, 2004 11:11 am    Post subject: Reply with quote

Novice

Joined: 02 Mar 2004
Posts: 16

Thanks, Kumar.

In my scenario there's a heavy usage of mq clients (several hundreds of devices connecting to a qmgr). It's been a standard routine to have (enough number of) those devices connect to the qmgr whenever the qmgrs needs to be shutdown/restarted due to maintenance work, just to make sure that MaxChannels is set as expected.

I know it's not really necessary to do that. But it's been done like that in the past and I couldn't convince people unless MQ provides a way to query that attribute.
Back to top
View user's profile Send private message
mqonnet
PostPosted: Wed Apr 21, 2004 11:18 am    Post subject: Reply with quote

Grand Master

Joined: 18 Feb 2002
Posts: 1114
Location: Boston, Ma, Usa.

I am afraid, i dont have an answer rightaway. But you could check the MQAI chapters of the PCF manual to see if you can query any such attribute via your program.

Cheers
Kumar
Back to top
View user's profile Send private message Send e-mail Visit poster's website
PeterPotkay
PostPosted: Wed Apr 21, 2004 3:44 pm    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

Quote:

just to make sure that MaxChannels is set as expected


There are no ways to programatically ask MQ what this value is, or pretty much any other value held in the ini file.

Are all the other Queue Manager properties in the ini file unimportant? Obviously they are, so do these people create hokey test examples to test every possible QM attribute? No. So why assume this one property setting would not be any more reliable than the other?

Look at it this way: If you found a bug in your code, fixed it, and then tested it for that bug, you wouldn't keep testing for that specific bug everytime you released the code because of other unrelated changes.

Fine, you guys got burned by not having this setting set high enough a long ago. And you figured out the solution. Really, there is no need to test it every time. Tell these "people" to let it go, and move on.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » MaxChannels
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.