Author |
Message
|
peterli |
Posted: Sun Jun 30, 2002 2:35 pm Post subject: Limit the number of Client Connections. |
|
|
Apprentice
Joined: 17 Oct 2001 Posts: 29 Location: Melbourne, Australia
|
I was wondering if it is possible to limit the number of Client Connections?  |
|
Back to top |
|
 |
kolban |
Posted: Sun Jun 30, 2002 6:54 pm Post subject: |
|
|
 Grand Master
Joined: 22 May 2001 Posts: 1072 Location: Fort Worth, TX, USA
|
Most certainly. I think there is an MQSeries attribute called max connections. If that doesn't work, then a simple exit can be employed to allow/disallow new connections based on the number of current connections. |
|
Back to top |
|
 |
nimconsult |
Posted: Sun Jun 30, 2002 10:46 pm Post subject: |
|
|
 Master
Joined: 22 May 2002 Posts: 268 Location: NIMCONSULT - Belgium
|
You can control the number of client connections is by changing the MaxChannels and MaxActiveChannels attributes.
On Windows NT you do that by opening the properties of the queue manager in the "MQ Series Services" snap-in. On other distributed platforms you have to edit the qm.ini file.
This attribute changes the total number of active channels (not only client connections).
I do not know a way of controlling the number of client connections specifically. _________________ Nicolas Maréchal
Senior Architect - Partner
NIMCONSULT Software Architecture Services (Belgium)
http://www.nimconsult.be |
|
Back to top |
|
 |
glen |
Posted: Mon Jul 01, 2002 4:06 am Post subject: |
|
|
Novice
Joined: 05 Jun 2002 Posts: 13 Location: Dublin, Ireland.
|
the default number of connections to a QM in NT is 100.
I had a need to increase this - (maxchannels, maxactivechannels)
in your case, you might want to change the maxinitiators too - default is 3: |
|
Back to top |
|
 |
raman |
Posted: Sat Jul 20, 2002 10:07 am Post subject: AMQ9513: Maximum number of channels reached. |
|
|
Novice
Joined: 15 May 2002 Posts: 13
|
Hi,
The following error is written to the Qmanager's error log file.
-------------------------------------------------------------------------------
AMQ9513: Maximum number of channels reached.
EXPLANATION:
The maximum number of channels that can be in use simultaneously has been
reached. The number of permitted channels is a configurable parameter in the
queue manager configuration file.
ACTION:
Wait for some of the operating channels to close. Retry the operation when some
channels are available.
-------------------------------------------------------------------------------
AMQ9999: Channel program ended abnormally.
EXPLANATION:
Channel program 'CLIENT.00.UTSLED03' ended abnormally.
ACTION:
Look at previous error messages for channel program 'CLIENT.00.UTSLED03' in the
error files to determine the cause of the failure.
-------------------------------------------------------------------------------
I have created one Server Connection channel. I have also created one Client Connection and copied the client channel table to my client machine. Do I have to create more channels to avoid getting this error? Can I use maxChannels and maxActiveChannels attributes? If I have only one server connection channel, can I change the values of these attributes? I don't have any idea what these attributes are used for. Any help is greatly appreciated.
Thanks in advance.
raman. |
|
Back to top |
|
 |
glen |
Posted: Mon Jul 22, 2002 12:35 am Post subject: |
|
|
Novice
Joined: 05 Jun 2002 Posts: 13 Location: Dublin, Ireland.
|
You don't need to change the properties of the server connection channel, you need to alter the queue manager attributes from the MQ Services MMC snapin.
The figure you choose for maxchannels depends on the number of active connections on each queue manager, not the actual number of queues.
Increase the maxchannels parameter to allow more channels in the same QM to open.
I found that increasing the maxactivechannels allowed my (non IBM) middleware to decrease initiation speed across my queues when activating them simultaneously. |
|
Back to top |
|
 |
oz1ccg |
Posted: Mon Jul 22, 2002 3:44 am Post subject: |
|
|
 Yatiri
Joined: 10 Feb 2002 Posts: 628 Location: Denmark
|
Hmm,
Doesn't this look like the cause of problem could be in the client applications, it seems like they don't close the connection (especially when JAVA). Right ?
Well I know it might be a bit off topic, but I remeber we've discussed that before, try a search here on that.
Just my $0.02  _________________ Regards, Jørgen
Home of BlockIP2, the last free MQ Security exit ver. 3.00
Cert. on WMQ, WBIMB, SWIFT. |
|
Back to top |
|
 |
|