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 IBM MQ Support » More: MaxChannels and MaxActiveChannels

Post new topic  Reply to topic
 More: MaxChannels and MaxActiveChannels « View previous topic :: View next topic » 
Author Message
SAFraser
PostPosted: Fri Dec 14, 2007 8:14 am    Post subject: More: MaxChannels and MaxActiveChannels Reply with quote

Shaman

Joined: 22 Oct 2003
Posts: 742
Location: Austin, Texas, USA

Last month, I posted a question about maximum channel connections. http://www.mqseries.net/phpBB2/viewtopic.php?t=40559&highlight= There was confusion on the issue, even amongst our exalted grand masters.

I've had a chance to test a bit on my sandbox, and have come to these conclusions:
    - MaxChannels limits all channels for which there is an entry in the channel status table.
    - MaxActiveChannels limits only channels with a running status.
    - In the absence of a MaxChannels entry, the default of 100 applies regardless of whether there is a MaxActiveChannels entry. i.e., MaxActiveChannels does not become the default for MaxChannels.
    - Whatever is the most restrictive parameter will apply. i.e., if the limit for MaxChannels is reached but the MaxActiveChannels is not, the connection will be refused. If the limit for MaxActiveChannels is reached but the MaxChannels is not, the connection will be refused.

My takeaway from this is: Each parameter is still used, each operates independently, and each operates at the default of 100 unless set otherwise.

Tests were performed on MQ 6.0.2.2 on Solaris 9. If anyone wants me to post the details of what I tested, I'd be glad to.

Shirley
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Dec 14, 2007 8:43 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981


_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Dec 14, 2007 9:01 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Shirley

I believe we only set the MAXChannels=1000 in the .ini file (AIX 6.0.2.2) (IIRC) and the default of active channels is then the maxchls as we routinely go over 100 active channels


_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
SAFraser
PostPosted: Fri Dec 14, 2007 9:57 am    Post subject: Reply with quote

Shaman

Joined: 22 Oct 2003
Posts: 742
Location: Austin, Texas, USA

I did experience the opposite effect - MaxActiveChannels as the only affirmatively set parameter - and it did not change the default value of the MaxChannels. I also tested a number of scenarios of affirmatively setting various combinations of the two parameters.

But I did not test the scenario you mention....

And, as I look back, I believe we ran for a long time with only MaxChannels set and far exceeded 100 active channel connections all the time.

I will confirm this in time on my little sandbox, but it does appear that the conclusion should be altered to add:
    - In the absence of an affirmatively set MaxActiveChannels parameter, it will assume the value set for MaxChannels.

Does that capture it, do you think? I wonder what other scenarios I missed. This is why I'm an admin and not a test designer.

Shirley
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Fri Dec 14, 2007 10:05 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

SAFraser wrote:
I will confirm this in time on my little sandbox, but it does appear that the conclusion should be altered to add:
    - In the absence of an affirmatively set MaxActiveChannels parameter, it will assume the value set for MaxChannels.

Does that capture it, do you think?


You got it Shirley. The SAG notes this exact scenario:
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/topic/com.ibm.mq.amqzag.doc/fa12670_.htm

Quote:
MaxActiveChannels=MaxChannels_value
The maximum number of channels allowed to be active at any time. The default is the value specified on the MaxChannels attribute.

_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
issac
PostPosted: Thu Oct 09, 2008 3:30 am    Post subject: Reply with quote

Disciple

Joined: 02 Oct 2008
Posts: 158
Location: Shanghai

hah, i've found the info here so helpful.
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Thu Oct 09, 2008 5:37 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

http://www-01.ibm.com/support/docview.wss?rs=171&uid=swg1IZ22725

Quote:

Error description
One section of the WebSphere MQ version 6 manual incorrectly
stated that the queue manager configuration MaxChannels
attribute in the CHANNELS stanza is ignored WebSphere MQ.
Local fix
Documentation amq521u is changed to document that the MaxChannel
MaxChannels attribute is not ignored.
Problem summary
****************************************************************
USERS AFFECTED:
Users who need to set their channels configuration to tune the
channel status table size

Platforms affected:
All Distributed (iSeries, all Unix and Windows)
****************************************************************
PROBLEM SUMMARY:
Topic "amq521u" in the WebSphere MQ manual contained an
incorrect statement regarding the MaxChannels configuration
setting.

The MaxChannels setting is not ignored and will still take
effect in WebSphere MQ 6 and above.
Problem conclusion
The WebSphere MQ manuals are amended to remove the incorrect
statement.

---------------------------------------------------------------
The fix is targeted for delivery in the following PTFs:

v6.0
Platform Fix Pack 6.0.2.5
-------- --------------------

_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
JosephGramig
PostPosted: Thu Oct 09, 2008 6:55 am    Post subject: Reply with quote

Grand Master

Joined: 09 Feb 2006
Posts: 1244
Location: Gold Coast of Florida, USA

You know, I'm looking at a production QMGR and it has:
MaxChannels=5000
MaxActiveChannels=5000

And then I do:
echo 'DIS CHS(<MySVRCONN>)' |runmqsc <MyQMGR> |wc -l

and I get 12998. CHS is not returning connections? or what?

Also, when I count this way:
echo 'DIS CHS(*)' |runmqsc <MyQMGR>|grep CHANNEL|sort|uniq -c

And the total there equals the max (5000), I get the MaxChannels error.

BTW, for <MySVRCONN>, it now counts 2604 (and the number is not varying that much).

How bizarre, how bizarre...
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » More: MaxChannels and MaxActiveChannels
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.