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 IndexGeneral IBM MQ SupportNumber of execution cotroller process per Queue Manager

Post new topicReply to topic
Number of execution cotroller process per Queue Manager View previous topic :: View next topic
Author Message
Mangesh1187
PostPosted: Mon Jan 22, 2018 10:29 pm Post subject: Number of execution cotroller process per Queue Manager Reply with quote

Centurion

Joined: 23 Mar 2013
Posts: 115

Hi All,

Have a query.

Is there any possibility if a Queue Manager can have more than one execution controller process at a time ?

e.g. on AIX system when I execute below command I get o/p as 1
ps -ef | grep amqzxma0| grep -w QM | grep -v grep | wc -l

Is there any possibility that this command can give o/p more than 1 .
And if it is , is it a normal behavior or indication of some problem ?

Off-course if the o/p is 0 , it means EC I snot running & there seems a problem.

Regards,
Mangesh Khandale
Back to top
View user's profile Send private message
abhi_thri
PostPosted: Tue Jan 23, 2018 1:02 am Post subject: Reply with quote

Master

Joined: 17 Jul 2017
Posts: 222
Location: UK

Hi...could it be the case that you are seeing multiple threads started by the same process as described in the below topic,

http://mqseries.net/phpBB/viewtopic.php?p=97637&sid=0195a7b6b7a42ab7e58cfbd63c31159a
Back to top
View user's profile Send private message
Mangesh1187
PostPosted: Tue Jan 23, 2018 8:45 am Post subject: Reply with quote

Centurion

Joined: 23 Mar 2013
Posts: 115

Thanks Abhi.

I have gone through the link and it is helpful.
It is mentioned there "
On Linux, "ps -ef" shows threads, not processes."
Is it the same case with AIX ?

Meanwhile similar to this have another query :
Is it possible if at any time the below command should return no output , but QM is running fine
ps -ef | grep amqzxma0

The reason of asking these question is one of our client has a ksh script like below:

check_ec=`ps -ef |grep amqzxma0|grep -w $qm |grep -v grep|wc -l`
if [ $check_ec -eq 1 ]; then
echo " MQSeries Execution Controller is running."
else
echo " Error! MQSeries Execution Controller is not running! $check_zxma0 processes found."

fi

This script executes after every 5 mins to health check MQ .
SO clearly considering threading nature the value for check_ec can be more than 1.

SO want to check if at any scenario the value can be 0 but still QM is running fine ??
Back to top
View user's profile Send private message
abhi_thri
PostPosted: Thu Jan 25, 2018 1:39 am Post subject: Reply with quote

Master

Joined: 17 Jul 2017
Posts: 222
Location: UK

Check whether the listed threads shares the same 'parent PID' as the PID of amqzxma0 which means those threads were started by amqzxma0.

Code:

UID        PID  PPID  C STIME TTY          TIME CMD
mqm       1786     1  0  2017 ?        01:06:50 /opt/mqm/bin/amqzxma0 -m QMGR1 -u mqm
mqm       1791  1786  0  2017 ?        00:01:13 /opt/mqm/bin/amqzfuma -m QMGR1
mqm       1796  1786  0  2017 ?        00:06:02 /opt/mqm/bin/amqzmuc0 -m QMGR1



Another way to retrieve PID of threads for a specific process is using 'ls -1 /proc/<parent pid>/task'

Regarding the second query, I don't think the QMgr will work fine without amqzxma0 as it deals with MQCONN requests. For eg:- someone could accidentally kill off that process and the QMgr may seem to be running fine but don't think it will be able to service further MQCONN requests.
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexGeneral IBM MQ SupportNumber of execution cotroller process per Queue Manager
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.