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 Discussion » MaxActiveChannels vs. MaxChannels

Post new topic  Reply to topic
 MaxActiveChannels vs. MaxChannels « View previous topic :: View next topic » 
Author Message
r00kie
PostPosted: Wed Nov 12, 2003 11:45 pm    Post subject: MaxActiveChannels vs. MaxChannels Reply with quote

Novice

Joined: 27 Aug 2002
Posts: 18

Hi everyone,

Don't know if anyone has run across this before but we are modifying our max channels via SMS and have had problems with this. We run a job that makes max channels 1000. What happens is that MaxActiveChannels somehow gets set to 0. As a result, no channels will start at all. We've had to back out twice. The first time we had services running prior to the change then the server was rebooted afterwards. The second time, we had the services and dependencies stopped, then the change made, then a reboot and still no luck. On the servers we've tried so far, the keys do not exist in the registry prior to the test. These are NT4.0 servers.

Anyone have any experience with this? By the way, we had KeepAlive set to yes last year! Got the info here so thanks for all your help!!

R00kie
Back to top
View user's profile Send private message
JasonE
PostPosted: Thu Nov 13, 2003 3:22 am    Post subject: Reply with quote

Grand Master

Joined: 03 Nov 2003
Posts: 1220
Location: Hursley

How are you making this change? ie how does the job run?
Back to top
View user's profile Send private message
r00kie
PostPosted: Thu Nov 13, 2003 6:01 am    Post subject: Reply with quote

Novice

Joined: 27 Aug 2002
Posts: 18

It's going out as part of a software update. We have 3 updates to MQ: first, while the services are running, we change security settings for a specific user group, mqusers, then we change the account that is used in DCOMCNFG; finally, we change the max channels after having the services and dependency services stopped. After all these changes are made, the server is then rebooted. The max channel is done by calling a C++ exe that was written by another dept. here. It is only called if all services have been stopped. The only semi-clue I've been able to find is a reference to the channel initiator: "Unexpected return code 10 from command RUNMQCHI - qSYSTEM.CHANNEL.INITQ. The strange thing is that all this actually worked for 2 of the 7 servers we've tried so far.

Any help is greatly appreciated.

R00kie
Back to top
View user's profile Send private message
JasonE
PostPosted: Thu Nov 13, 2003 7:07 am    Post subject: Reply with quote

Grand Master

Joined: 03 Nov 2003
Posts: 1220
Location: Hursley

What ver / rel / fixpack of MQ is being used here?

Various things to try, nothing concrete though
1. When the reg key is written, is it secured so MQ can read it
2. On the machines which worked, have they perhaps had channel config options changed before, ie the 'Channels' reg tree isnt new?
3. After the change, before rebooting, try amqmdain regsec
4. Before making the change try taking a process list. If the machine failed, what amq* processes were running

Can you confirm, you run your pgm and the registry gets updated with MaxActiveChannels or 0? I'd be tempted to get a regdump after your pgm has run, and then set the service to manual, reboot, then get another dump (just to be sure!), then run regmon (www.sysinternals.com) and start the service - It will tell you who (prob. amqmsrvn) wrote the key but might help as to why
Back to top
View user's profile Send private message
r00kie
PostPosted: Thu Nov 13, 2003 7:32 am    Post subject: Reply with quote

Novice

Joined: 27 Aug 2002
Posts: 18

Thanks for the info!! We are actually running 5.2 on CSD02. (I know, I know, we are bit behind!!)

On the servers that we tried, all had no previous reg keys for the channels set so they would have picked up the default setting of 100.

We do actually get a dump of the registry change and it has been confirmed to change to 1000. The only other thing I can think of is that the reboot may be causing a problem. I was thinking that we should stop/start the services OR reboot instead of doing both? The servers we tried last night set both keys to 0 even tho the reg dump indicated it had been updated to 1000. By the way, I think that we are only changing the max channels not the MaxActiveChannels but somehow that was set to 0 the other night when the MaxChannels was set to 1000.

Thanks again for all your help. Any advice is apppreciated. I find this site very helpful.

R00kie
Back to top
View user's profile Send private message
JasonE
PostPosted: Fri Nov 14, 2003 6:35 am    Post subject: Reply with quote

Grand Master

Joined: 03 Nov 2003
Posts: 1220
Location: Hursley

You are setting it to a reg_sz and not a reg_dword, arent you?

Get a log of:
0. Set service to manual start, and Qmgrs to all manual start, stop service and all qmgrs.
1. Save Process list + reg dump
2. Run pgm to add key
3. Save Process list + reg dump
4. reboot
5. Save Process list + reg dump
6. start MQ service
7. Save Process list + reg dump
8. start qmgr
9. Save Process list + reg dump

At which point does it go from 1000 to 0

(Shame you are not 5.3, as amqmdain reg QM -c add -s Channels -v MaxChannels=123 would set it for qmgr QM)
Back to top
View user's profile Send private message
r00kie
PostPosted: Wed Nov 19, 2003 11:45 pm    Post subject: MaxChannels vs. MaxActive Channels Reply with quote

Novice

Joined: 27 Aug 2002
Posts: 18

Hi again,

Just wanted to let you know that I think we found the problem. When running this in test, we stopped after each mq change we were making. The first change had to be run with the qmgr running and that worked fine. The second one was the max channels change. After we ran it we checked in taskman and it turns out that MQ did not shut down properly because there were 3 applications that run over MQ hanging onto a connection to MQ so MQ wasn't shut down.

We've added into the script to end the queue manager and kill the listener before stopping the MQSeries service and this has worked.

Thanks for all your help on this.


R00kie
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Fri Nov 21, 2003 5:51 pm    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

From the System Admin Guide:

Quote:

MaxChannels=100|number
The maximum number of channels allowed. The default is 100.
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.



If MaxActiveChannels is 0, then it just defaults to whatever MaxChannels is.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » MaxActiveChannels vs. MaxChannels
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.