Author |
Message
|
kash3338 |
Posted: Fri Aug 03, 2012 8:22 am Post subject: Remove a deployed flow |
|
|
Shaman
Joined: 08 Feb 2009 Posts: 709 Location: Chennai, India
|
Hi,
We have faced this scenario so many times. In our development environment (Windows XP), we have a Broker server and have many systems connected to the Broker server. This server is primarily used by the newbies to have a hands-ons on WMB.
Often there are times when some flow gets deployed with a infinite loop or for some reason the flow just hangs in the EG and we are not able to remove the flow. Generally we try the following,
1. Cancel all deployments and try removing
2. Restart the EG
3. Stop the Broker (The Broker service goes in a "Stopping" state, hence we end the bibBroker process and stop it) and again restart.
Few times we succeed with one of the above steps, but few times none of these helps.
What is the proper way to handle this problem? What if the flow is hung and we are not able to remove it from the EG?
This holds good for both WMB v6.1 and v7.0 |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Aug 03, 2012 9:01 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Usually the best way to stop a flow that is in an infinite loop is to - block all potential inputs, particularly do things like get-disable any queues it reads from
- restart the EG
If the flow has no input available when the EG starts up, then it won't run any code and so it won't loop. Restarting the eG, even by killing the DFE process, means that any loops running are now stopped. |
|
Back to top |
|
 |
kash3338 |
Posted: Sat Aug 04, 2012 3:49 am Post subject: |
|
|
Shaman
Joined: 08 Feb 2009 Posts: 709 Location: Chennai, India
|
mqjeff wrote: |
Restarting the eG, even by killing the DFE process, means that any loops running are now stopped. |
Thanks mqjeff. How to identify the DFE process of a particular Message Flow? Do you mean to say, we should identify the DFE process of that particular flow and kill it? |
|
Back to top |
|
 |
Vitor |
Posted: Sat Aug 04, 2012 5:27 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
kash3338 wrote: |
How to identify the DFE process of a particular Message Flow? |
ps -ef _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
fjb_saper |
Posted: Sat Aug 04, 2012 5:47 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Vitor wrote: |
kash3338 wrote: |
How to identify the DFE process of a particular Message Flow? |
ps -ef |
A little bit more difficult if you are running on Windows, but you should see the pid in the WMB Explorer when the eg starts up.
Then set your task manager to display the pid as well and there you are all set...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
McueMart |
Posted: Sat Aug 04, 2012 6:01 am Post subject: |
|
|
 Chevalier
Joined: 29 Nov 2011 Posts: 490 Location: UK...somewhere
|
|
Back to top |
|
 |
bruce2359 |
Posted: Sat Aug 04, 2012 6:29 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
For those with multiple qmgrs on windows, a very useful graphical tool to display WMQ processes belonging to an individual qmgrs process tree. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
|