|   | 
	 
  
    | 
RSS Feed - WebSphere MQ Support
 | 
RSS Feed - Message Broker Support
 |   
 
  
	     | 
	 | 
   
 
  
	|  Number of execution cotroller process per Queue Manager | 
	« View previous topic :: View next topic »  | 
   
  
  	
	  
		
		
		  | Author | 
		  Message
		 |  
		
		  | Mangesh1187 | 
		  
		    
			  
				 Posted: Mon Jan 22, 2018 10:29 pm    Post subject: Number of execution cotroller process per Queue Manager | 
				     | 
			   
			 
		   | 
		 
		
		   Centurion
 
 Joined: 23 Mar 2013 Posts: 116
  
  | 
		  
		    
			  
				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 | 
		  
		  	
		   | 
		 
		
		    | 
		 
		
		  | abhi_thri | 
		  
		    
			  
				 Posted: Tue Jan 23, 2018 1:02 am    Post subject:  | 
				     | 
			   
			 
		   | 
		 
		
		    Knight
 
 Joined: 17 Jul 2017 Posts: 516 Location: UK 
  | 
		  
		    
		   | 
		 
		
		  | Back to top | 
		  
		  	
		   | 
		 
		
		    | 
		 
		
		  | Mangesh1187 | 
		  
		    
			  
				 Posted: Tue Jan 23, 2018 8:45 am    Post subject:  | 
				     | 
			   
			 
		   | 
		 
		
		   Centurion
 
 Joined: 23 Mar 2013 Posts: 116
  
  | 
		  
		    
			  
				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 | 
		  
		  	
		   | 
		 
		
		    | 
		 
		
		  | abhi_thri | 
		  
		    
			  
				 Posted: Thu Jan 25, 2018 1:39 am    Post subject:  | 
				     | 
			   
			 
		   | 
		 
		
		    Knight
 
 Joined: 17 Jul 2017 Posts: 516 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 | 
		  
		  	
		   | 
		 
		
		    | 
		 
		
		  | 
		    
		   | 
		 
	   
	 | 
   
 
  
	     | 
	 | 
	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
  | 
  		 
	   
	 | 
   
 
  	 | 
	  |