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 » IBM MQ Installation/Configuration Support » MA7K - Trigger monitor service - Problem

Post new topic  Reply to topic
 MA7K - Trigger monitor service - Problem « View previous topic :: View next topic » 
Author Message
jared_hagel
PostPosted: Wed May 04, 2005 3:58 pm    Post subject: MA7K - Trigger monitor service - Problem Reply with quote

Apprentice

Joined: 23 Jun 2004
Posts: 29

Hi guys,

I have a problem where the Client Trigger Monitor Windows Service (http://www-1.ibm.com/support/docview.wss?rs=171&uid=swg24000149&loc=en_US&cs=utf-8&lang=en) doesn't always close it's connection after it's restarted.

I'm using the monitor to monitor our initiation queue. After I start the monitor, the "Open Input Count" property of the queue changes from 0 to 1, as it should. After I shut down the monitor, the "Open Input Count" property of the initiation queue MAY return to 0 or it may stay at 1. The property returns to 0 if I run the client monitor on a Windows 2000 Professional machine, but will remain stuck at 1 if I run the client monitor on a Windows 2000 Advanced Server. Sigh... I suppose the problem might be that Windows 2000 Advanced Server isn't supported...

In the setup.ini file used to configure the monitor I use all default settings. The only custom setting I have is:

Code:

Thread:
TriggerQueueName=MQSVC.INITIATION
CONNAME=st2dotnet01v(2000)
CHANNEL=MQD45_SVRCONN


IBM doesn't provide support for this product either, right? I may be stuck building a client trigger monitor myself. O well. This problem occurs when the MQ Server is run on both UNIX and Windows 2000 Advanced Server machines.

Thanks,
Jared
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Wed May 04, 2005 4:06 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Have you enabled any of the automatic service restart features on the service configuration? (In the Windows Service mmc on the properties of the service itself - not in the INI).

If you can't get this service to work reliably, then just use Scheduled Tasks to run an instance or three of runmqtrmc.exe.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
jared_hagel
PostPosted: Wed May 04, 2005 8:35 pm    Post subject: Reply with quote

Apprentice

Joined: 23 Jun 2004
Posts: 29

Thanks Jeff,

I think the automatic service restart feature is enabled by default in the Windows Services mmc for the monitor service. My problem is that after I stop the windows service, the Open Input Count of the initiation queue is the same as it was while the windows service was running. Turning off the windows service didn't decrease the Open Input Count of the initiation queue.

Hmm... Using runmqtrmc.exe might be worth a shot. Far better than making my own monitor. I'll look into it in the morning. In the WebSphere MQ Clients pdf, the only documented arguments are the queue manager & initiation queue. Does runmqtrmc.exe also accept the remote server name, connection channel name & port number?

Thanks,
Jared
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Thu May 05, 2005 3:01 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

jared_hagel wrote:
I think the automatic service restart feature is enabled by default in the Windows Services mmc for the monitor service. My problem is that after I stop the windows service, the Open Input Count of the initiation queue is the same as it was while the windows service was running. Turning off the windows service didn't decrease the Open Input Count of the initiation queue.

My point was to make sure that it was actually stopped when you checked the IC.

jared_hagel wrote:
Hmm... Using runmqtrmc.exe might be worth a shot. Far better than making my own monitor. I'll look into it in the morning. In the WebSphere MQ Clients pdf, the only documented arguments are the queue manager & initiation queue. Does runmqtrmc.exe also accept the remote server name, connection channel name & port number?

No.

It uses the MQSERVER environment variable or the client conn table variables. So use a .BAT file to start runmqtrmc and set the appropriate info in there.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Thu May 05, 2005 5:26 pm    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

Is the triggered program run with START prepended. For example, your process def should like like this:
START C:\CIMS\CimFin\Triggers\FOCSphase2exec.exe

If not, the TM waits until the triggered program ends before it ends. If that triggered program is still running, so will the TM, even if you stop the service.

After you stop the service, look in task manager to see if either the TM or your triggered exe is still lurking.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
jared_hagel
PostPosted: Fri May 13, 2005 5:35 am    Post subject: solved Reply with quote

Apprentice

Joined: 23 Jun 2004
Posts: 29

Thanks Peter - that was the problem.

My triggered exe wasn't finishing, so the trigger monitor was hanging. I fixed the trigger exe so that even if something goes wrong during the execution of the exe, it won't hang.

Thanks a lot!
Jared

PS It's difficult to prepend that START command to change how the trigger program is run at our company. I think that would involve modifying the trigger queue definition or the process definition to prepend that START command. Our company has outsourced maintenance of our servers and queue managers, so modifying queue definitions is quite slow.
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Fri May 13, 2005 5:56 am    Post subject: Re: solved Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

jared_hagel wrote:
It's difficult to prepend that START command to change how the trigger program is run at our company. I think that would involve modifying the trigger queue definition or the process definition to prepend that START command. Our company has outsourced maintenance of our servers and queue managers, so modifying queue definitions is quite slow.


You should always invoke batch or script files from triggers, instead of directly invoking exes.

This would allow you to change the batch file to start your processing in another shell, rather than having to change the queue definition.

There are also a lot of other reasons for doing this. Like if the exe changes names or needs new parameters or etc...
_________________
I am *not* the model of the modern major general.
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 » IBM MQ Installation/Configuration Support » MA7K - Trigger monitor service - Problem
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.