Author |
Message
|
KAKOZ |
Posted: Sun Apr 18, 2004 11:44 pm Post subject: client cxion and runmqlsr: MCA process or thread started? |
|
|
Voyager
Joined: 26 Jan 2004 Posts: 90 Location: FRANCE
|
Hi,
I would like to clarify this point - UNIX environnement - :
- Ibm recommends to use runmqlsr instead of inetd
- it is said that each time a client appli connects to the server the listener runmqlsr starts a MCA program which is in fact a thread of runmqslr
so questions:
1) is it possible to identify this MCA program with for instance the ps -ef command? to get the pid
2) how to identify the different threads of runmqlsr on the system and how to associate each of them to each client connection?
the idea is to be able to delete a MCA program (SVRCONN) corresponding to a special client connection without disturbing the others connections!
is that possible?
thanks for help and ideas!
Jack |
|
Back to top |
|
 |
mqonnet |
Posted: Mon Apr 19, 2004 7:53 am Post subject: |
|
|
 Grand Master
Joined: 18 Feb 2002 Posts: 1114 Location: Boston, Ma, Usa.
|
I dont think there is "any" way you could associate the two. Not just unix, but on any platform.
There is no key/identifying field that would help us associate a channel with a particular instance of the MCA.
I can understand why you need this info, but i am pretty much sure there is no way of getting such info. Unless of course there is a supportpak that does give you this info.
Cheers
Kumar |
|
Back to top |
|
 |
PeterPotkay |
Posted: Mon Apr 19, 2004 1:26 pm Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
Do a status on the SVRCONN channel. Returned to you will be each instance of the channel running, along with an IP address, so you can figure out which is which. But alas, you cannot actually stop them inividually. Its all or nothing. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
leongor |
Posted: Tue Apr 20, 2004 1:25 am Post subject: |
|
|
 Master
Joined: 13 May 2002 Posts: 264 Location: Israel
|
With MQ 5.3 you can stop SVRCONN channel by IP address. _________________ Regards.
Leonid.
IBM Certified MQSeries Specialist. |
|
Back to top |
|
 |
KAKOZ |
Posted: Tue Apr 20, 2004 1:40 am Post subject: |
|
|
Voyager
Joined: 26 Jan 2004 Posts: 90 Location: FRANCE
|
Hi Leonid,
- the STOP CHANNEL command gives the possibility to specify the CONNAME (ex: hostname(1415)) - but doing that we delete all the client connections which have been made throught this conname (on the same connname several different clients can connect to the server) ,
- i dont understand if each client cxion make runmqlsr start a separate SVRCONN thread ou if one SVRCONN thread of runmqlsr is able to handle several client cxions at a time?
Jack |
|
Back to top |
|
 |
PeterPotkay |
Posted: Tue Apr 20, 2004 4:37 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
You cannot stop a channel instance by IP address. You have to stop the main SVRCONN channel, which stops all instances from all IP addresses.
Or you can put an individual instance specified by IP address into INACTIVE. But not STOPPED.
From the MQSC Manual:
Quote: |
If you specify either QMNAME or CONNAME, STATUS must either be INACTIVE
or not specified. Do not specify a QMNAME or CONNAME and
STATUS(STOPPED). It is not possible to have a channel stopped for one partner
but not for others. This sort of function can be provided by a channel security exit.
For more information about channel exits, see the WebSphere MQ
Intercommunication manual
|
My testing confirms this. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
KAKOZ |
Posted: Tue Apr 20, 2004 6:00 am Post subject: |
|
|
Voyager
Joined: 26 Jan 2004 Posts: 90 Location: FRANCE
|
Hi Peter,
- but what do you think about this pb with runmqlsr of not beeing able to handle juste one client connection (like with inetd listener + amqcrsta) ?
* with runmqlsr if you stop or put inactive a conname for a SVRCONN,all the clients connected on that conname are reached
* instead when using inetd + amqcrsta you can act on one connection only
??
Jack |
|
Back to top |
|
 |
PeterPotkay |
Posted: Tue Apr 20, 2004 6:08 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
I guess it is what it is. If you use runmqlsr, you take the good with the bad. And at the current version, you cannot pick and choose what individual threads from a SVRCONN to kill. Maybe in the future? _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
KAKOZ |
Posted: Tue Apr 20, 2004 6:13 am Post subject: |
|
|
Voyager
Joined: 26 Jan 2004 Posts: 90 Location: FRANCE
|
thanks Peter - now that's more clear for me
Jack |
|
Back to top |
|
 |
|