Author |
Message
|
shogan2003 |
Posted: Thu Nov 16, 2006 3:58 am Post subject: MaxChannels experiment |
|
|
Centurion
Joined: 03 Jul 2003 Posts: 133 Location: London
|
Environment : WMQ6 on Windows XP
As an exercise,I am attempting to force queue manager to reject channel connections.
Have set MaxChannels & MaxActiveChannels to 3. Have stopped and restarted queue manager.
Have 5 channels running : 1 sender-receiver (sender side), 1 sender-receiver (receiver side),
3 separate server connection channels
The 3 server connection channels are kept open by amqsputc
I can't understand why the queue manager didn't reject the fourth (and fifth) channel connection
Thanks in advance _________________ MQSI2 certified specialist
MQSeries certified specialist |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Nov 16, 2006 4:07 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Quote: |
The 3 server connection channels are kept open by amqsputc |
So you are running amqsputc in debug mode to keep the channel open? Otherwise they will just serialize their access to the resource and as it does not need to be long you will see it finish before the timeout...
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
bruce2359 |
Posted: Thu Nov 16, 2006 2:35 pm Post subject: |
|
|
Guest
|
On the client end, are you specifying different SVRCONN channel names for each amqsputc instance (mqserver=)?
If so, each mqserver= creates an instance of a SVRCONN channel on the qmgr.
If you specify the same channel name on each mqserver= at the client, the one instance of the SVRCONN at the qmgr will service all amqsput client instances. |
|
Back to top |
|
 |
shogan2003 |
Posted: Sat Nov 18, 2006 1:27 am Post subject: |
|
|
Centurion
Joined: 03 Jul 2003 Posts: 133 Location: London
|
Yes, I am specifying a separate channel in each command window SET MQSERVER definition _________________ MQSI2 certified specialist
MQSeries certified specialist |
|
Back to top |
|
 |
wschutz |
Posted: Sat Nov 18, 2006 4:29 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
Works as advertised for me:
Quote: |
----- amqrccca.c : 777 --------------------------------------------------------
11/18/2006 07:27:09 AM - Process(13318.9) User(wschutz) Program(amqrmppa)
AMQ9573: Maximum number of active channels reached.
EXPLANATION:
There are too many channels active to start another. The current defined
maximum number of active channels is 3.
ACTION:
Either wait for some of the operating channels to close or use the stop channel
command to close some channels. Retry the operation when some channels are
available. The maximum number of active channels is a configurable parameter in
the queue manager configuration file.
----- amqrcsia.c : 1214 ----------------------- |
Name: WebSphere MQ
Version: 6.0.2.0
On linux (of course) ... what FP/RP are you running? _________________ -wayne |
|
Back to top |
|
 |
shogan2003 |
Posted: Mon Nov 20, 2006 2:11 am Post subject: |
|
|
Centurion
Joined: 03 Jul 2003 Posts: 133 Location: London
|
Dear WSchutz
Thanks for taking the trouble.
For your information :
Name: WebSphere MQ
Version: 6.0.0.0
CMVC level: p000-L050519
BuildType: IKAP - (Production)
I'm so embarrassed about this. I even created copies of amqsputc and labelled them amqsputc1, amqsputc2. for each one I opened up a separate command window and set MQSERVER=<channel>/tcp/localhost(port)
The port number is the same in each case, though that shouldn't make a difference.
I'll give it another shot and may even resort to using my own simple Java-MQ adapter hacked from sample code. _________________ MQSI2 certified specialist
MQSeries certified specialist |
|
Back to top |
|
 |
nathanw |
Posted: Mon Nov 20, 2006 2:20 am Post subject: |
|
|
 Knight
Joined: 14 Jul 2004 Posts: 550
|
not sure but do server connection channels count as part of teh max number of channels allowed? _________________ Who is General Failure and why is he reading my hard drive?
Artificial Intelligence stands no chance against Natural Stupidity.
Only the User Trace Speaks The Truth  |
|
Back to top |
|
 |
wschutz |
Posted: Mon Nov 20, 2006 3:49 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
nathanw wrote: |
not sure but do server connection channels count as part of teh max number of channels allowed? |
Yes they do.
I used MQSERVER and copies of amqsputc, there is no need to re-name them.
I strongly suggest putting refresh pack 2 on MQ .... _________________ -wayne |
|
Back to top |
|
 |
nathanw |
Posted: Mon Nov 20, 2006 4:22 am Post subject: |
|
|
 Knight
Joined: 14 Jul 2004 Posts: 550
|
Well it is either a problem on teh install OR the stanza change has not been affected. _________________ Who is General Failure and why is he reading my hard drive?
Artificial Intelligence stands no chance against Natural Stupidity.
Only the User Trace Speaks The Truth  |
|
Back to top |
|
 |
|