|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Maximum Number of channels exceeded |
« View previous topic :: View next topic » |
Author |
Message
|
kairaja |
Posted: Sat Feb 09, 2002 3:53 pm Post subject: |
|
|
Novice
Joined: 08 Feb 2002 Posts: 13
|
Hello
I need some help real bad. We have an client application that puts messages in a QManager on a server box. The client is using MQConn call and using MQServer variable to communicate via channels.
First of all, can someone help me understand when does a new channel gets created. Meaning i created one Channel Definition, CHAN1 on the QManager. Then i have my client using MQConn and then it will start posting messages to the queues on the QManager. After sometime, my client program gets errors saying Maximum number of channels reached in the Event Viewer. Then i go and increase the channels and i get this again after sometime.
Does KeepAlive got to do with this. Can someone help me on this issue.
|
|
Back to top |
|
 |
kolban |
Posted: Sat Feb 09, 2002 7:58 pm Post subject: |
|
|
 Grand Master
Joined: 22 May 2001 Posts: 1072 Location: Fort Worth, TX, USA
|
The MQCONN channel is good until the associate MQCLOSE call. Try and keep the connection open as long as possible since a new channel is expensive. It sounds like you are leaking channel connections by not closing and re-opening a new one. |
|
Back to top |
|
 |
kairaja |
Posted: Sun Feb 10, 2002 12:12 pm Post subject: |
|
|
Novice
Joined: 08 Feb 2002 Posts: 13
|
Hello
Thanks for the reply. When you say MQClose, you are referring to the Que closing correct ? Before i do a MQPut, i open the que and put the message and then i close the queue. I am not sure how to close a channel connection. Do you disconnect() method of MQManager class ? I calling the disconnect() only when the application exits. Can you please post small code snippet of what mean as well. That might clear up my confusion. I really appreciate your help. |
|
Back to top |
|
 |
kolban |
Posted: Sun Feb 10, 2002 12:46 pm Post subject: |
|
|
 Grand Master
Joined: 22 May 2001 Posts: 1072 Location: Fort Worth, TX, USA
|
Apologies, I meant to say MQDISC and not MQCLOSE. I have responded in your other thread. Lets use that one to track the issue. |
|
Back to top |
|
 |
kairaja |
Posted: Sun Feb 10, 2002 1:01 pm Post subject: |
|
|
Novice
Joined: 08 Feb 2002 Posts: 13
|
Ok Thanks for all the help. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|