Author |
Message
|
omodarah |
Posted: Wed Oct 06, 2004 6:56 am Post subject: MQ Channel errors and using multiple Channels |
|
|
Apprentice
Joined: 09 Sep 2004 Posts: 26
|
Dear all,
I recieve the following errors on an NT Server connected to my AS400 system (Remote System in this scenario). When these errors occur the Channel(s) on the NT Server end abnormally.
The log messages suggest there are not enough channels available. I was always under the impression that the channel simply defined the protocol (in this case TCP/IP) to use for Transmission and should only get constrained if there is a general Network issue!!
If I am wrong and the channel can get too busy, hereby requiring a second channel to be defined for the Queue, can you please tell me how I can tell if the Channel has reached its Threshold/Processing Limit e.t.c..?
Please see the messages from the AMQ* Error log below:- {note that I have changed the Channel names for security purposes}
-------------------------------------------------------------------------------
08/16/2004 16:18:46
AMQ9558: Remote Channel is not currently available.
EXPLANATION:
The channel program ended because the channel 'XXX_BBB.CHANNEL' is not
currently available on the remote system. This could be because the channel is
disabled or that the remote system does not have sufficient resources to run a
further channel.
ACTION:
Check the remote system to ensure that the channel is available to run, and
retry the operation.
-------------------------------------------------------------------------------
08/16/2004 16:18:46
AMQ9999: Channel program ended abnormally.
EXPLANATION:
Channel program 'XXX_BBB.CHANNEL' ended abnormally.
ACTION:
Look at previous error messages for channel program 'XXX_BBB.CHANNEL' in the
error files to determine the cause of the failure.
-------------------------------------------------------------------------------
Thanks in advance.
Regards. |
|
Back to top |
|
 |
csmith28 |
Posted: Wed Oct 06, 2004 7:14 am Post subject: |
|
|
 Grand Master
Joined: 15 Jul 2003 Posts: 1196 Location: Arizona
|
This appears to either be a network issue or the MQManager on the AS/400 is down or someone intentionally stopped the RCVR channel on the AS/400 or the MQManager on the AS/400 has reached its MaxChannelsActive threshold.
The message doesn't say you need to create more channels it says the problem could be that "the remote system does not have sufficient resources to run a further channel"
Creating an additional channel will not help in this instance. _________________ Yes, I am an agent of Satan but my duties are largely ceremonial. |
|
Back to top |
|
 |
omodarah |
Posted: Thu Oct 07, 2004 6:05 am Post subject: |
|
|
Apprentice
Joined: 09 Sep 2004 Posts: 26
|
Hi Csmith,
Thanks for your prompt reply, the very text of the error is what led me to conclude that I may need more channels:-
The message doesn't say you need to create more channels it says the problem could be that "the remote system does not have sufficient resources to run a further channel"
How would you interprete the "Further Channels"? also why should the MaxChannelsActive be exceeded when I only have 1 channel at any time defined?
Sorry to be a pain but I just need to get a thorough understanding of this.
Thanks again. |
|
Back to top |
|
 |
kevinf2349 |
Posted: Thu Oct 07, 2004 6:11 am Post subject: |
|
|
 Grand Master
Joined: 28 Feb 2003 Posts: 1311 Location: USA
|
I think the key here is that the original message states this could be one or the other not that it definately is lack of resources |
|
Back to top |
|
 |
csmith28 |
Posted: Thu Oct 07, 2004 7:18 am Post subject: @ omodarah |
|
|
 Grand Master
Joined: 15 Jul 2003 Posts: 1196 Location: Arizona
|
Kevin2349 is correct the error output is merely suggesting possible problems.
Quote: |
EXPLANATION:
The channel program ended because the channel 'XXX_BBB.CHANNEL' is not currently available on the remote system. |
This means that for some reason or another. The remote RCVR channel is not available. The key word here is "remote" indicating that the problem is not local. It means that Sender 'XXX_BBB.CHANNEL' tried to start but it could bind with 'XXX_BBB.CHANNEL' Receiver Channel.
Quote: |
This could be because the channel is disabled |
Disabled could mean a lot of things here. The 'XXX_BBB.CHANNEL' Reciever channel on your AS/400 may not be defined. It may be defined with an incorrect name like 'XXX_BBB.CHENNEL'. Some one may have issues a stop chl 'XXX_BBB.CHANNEL' on the AS/400 Server. Perhaps the channel listener process on the AS/400 has been stopped or abended. It could be a network failure. The MQManager on the AS/400 could be down. The AS/400 Server istself may be down or performing backups.
Quote: |
or that the remote system does not have sufficient resources to run a further channel. |
There could be a number of different reasons for this. One is that the AS/400 MQManager has reached its "MaxChannelsActive" threshold. The AS/400 may not have enough available CPU or Memory to allow the MQManager to start another channel.
So, it's pretty safe to assume the channel is not too busy. Creating another channel on your NT Server will not resolve the problem of your existing channel not being able to connect to the remote AS/400. _________________ Yes, I am an agent of Satan but my duties are largely ceremonial. |
|
Back to top |
|
 |
omodarah |
Posted: Thu Oct 07, 2004 11:02 am Post subject: |
|
|
Apprentice
Joined: 09 Sep 2004 Posts: 26
|
Thanks all for your responses, I think I have found out what the problem is. In V5R2 of MQ, an AMQCRSTA job is started for every channel connection request and it seems when it has reached its maximum, when the local sender is trying to contact the system, it abends with the Channel not being available. After a while some jobs end and then there is more room for connections.
You mentioned the MaxChannelsActive Threshold. Where can I find this, I have checked the Queue Manager and Channel description or is it in one of the ini files?
I strongly believe this is my problem, becuase I have eliminated the Network problem probability.
Thanks again |
|
Back to top |
|
 |
csmith28 |
Posted: Thu Oct 07, 2004 2:03 pm Post subject: |
|
|
 Grand Master
Joined: 15 Jul 2003 Posts: 1196 Location: Arizona
|
omodarah wrote: |
Thanks all for your responses, I think I have found out what the problem is. In V5R2 of MQ, an AMQCRSTA job is started for every channel connection request and it seems when it has reached its maximum, when the local sender is trying to contact the system, it abends with the Channel not being available. After a while some jobs end and then there is more room for connections.
You mentioned the MaxChannelsActive Threshold. Where can I find this, I have checked the Queue Manager and Channel description or is it in one of the ini files?
I strongly believe this is my problem, becuase I have eliminated the Network problem probability.
Thanks again |
The MaxActiveChannels ( I got it bass ackwards =/) stanza should be placed in the /var/mqm/qmgrs/QMGRNAME/qm.ini Also do some research on the MaxChannels. All of this is in the MQSeries Administration Guide. If there is no Stanza in that file the default is 200 Active channels. I don't know where it is location on an AS/400.
Good luck, have fun. _________________ Yes, I am an agent of Satan but my duties are largely ceremonial. |
|
Back to top |
|
 |
siliconfish |
Posted: Thu Oct 07, 2004 2:21 pm Post subject: |
|
|
 Master
Joined: 12 Aug 2002 Posts: 203 Location: USA
|
Are un sure that you are getting that many requests for channels? if not check for any programs not closing client connections. You can also use TCP Keepalive option to clear the unused amqcrsta processes.
The mqs.ini file is stored in /QIBM/UserData/mqm
A qm.ini file is held in the <mqmdata directory>/QMNAME/qm.ini,
where:
<mqmdata directory> is /QIBM/UserData/mqm by default.
QMNAME is the name of the queue manager to which the initialization file applies. _________________ siliconfish |
|
Back to top |
|
 |
omodarah |
Posted: Fri Oct 08, 2004 5:39 am Post subject: |
|
|
Apprentice
Joined: 09 Sep 2004 Posts: 26
|
@ csmith28
I have found it should be in the /QIBM/UserData/mqm/qmgrs/QueueManagerName/qm.ini file on the AS400.
@ siliconfish
That has been a big concern of mine, becuase I found the highest number of connections to be 36. I think I will try the TCP/IP Keep Alive option 1st and watch it for 1 week, if the problem is not solved, then I will add the MaxActiveChannels statement to the qm.ini file and see what happens.
Thanks again everyone. I will keep you informed as to what the solution is |
|
Back to top |
|
 |
|