webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  How to kill a flow service

    Posted Wed January 29, 2003 04:20 PM

    Can somebody tell me how to kill a running flow service?
    Thanks,


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: How to kill a flow service

    Posted Wed January 29, 2003 04:27 PM

    Hi, ashis.

    I am guessing that you are running a trace or something similar in Developer, got caught in a LOOP or some other type of logic, and have now lost control of your GUI.

    Good thing Developer forces a “Save” of all modified Flows before starting a trace.

    Shut down Developer to kill the thread – the F9 keystroke is being blocked because the GUI is givign priority to the hanging Flow step.

    When you log back on, check your logic for any obvious issues. When testing next time, try to execute your Flow from a separately-running instance of a Web browser. That should help you get around this problem.


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 3.  RE: How to kill a flow service

    Posted Wed January 29, 2003 04:47 PM

    I heard “kill -3” or something like that for thread dump. Anybody knows more on this


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods


  • 4.  RE: How to kill a flow service

    Posted Wed January 29, 2003 06:52 PM

    Hi Dan,
    Thanks for your response.

    The service is still running even after killing the developer thread.


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods


  • 5.  RE: How to kill a flow service

    Posted Thu January 30, 2003 01:51 PM

    Hi, ashis.

    What sort of service are you attempting to execute? As much information as you can provide will be helpful.

    Thanks.


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 6.  RE: How to kill a flow service

    Posted Tue February 04, 2003 06:04 PM

    I am facing a kind of similar situation. Is there any way u can just kill a particular Flow Service Request (as part of admin), instead of restarting the entire server.

    Basically I am calling a Java API from my Flow Service, which creates Threads to get the work done. So sometimes this call gets blocked and I just need a way to kill it externally.

    Thx
    Ritesh


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 7.  RE: How to kill a flow service

    Posted Tue February 11, 2003 09:35 AM

    > I heard “kill -3” or something like that for thread dump.
    > Anybody knows more on this

    Yup, below is an in-house tutorial I wrote about generating thread dumps. We run IS on Linux. If I remember correctly, Java threading on Linux (when the JRE is run with --classic flag) maps threads to processes. Its possible to use this as a very blunt tool to kill Flows. However, using this generally brought down the server itself – so its basically a forensics tool to debug what the Java process got deadlocked in.


    First, let the java application (eg: WM B2B server) run into the problem you need to diagnose. After sometime, do a ‘ps wax’ and eyeball the TIME column. The Java threads (which usually map to Linux processes) causing the problem will have an abnormally high TIME entries. Record the process_id(s) of these processes.

    Then for each of these troublemaking PIDs, do

    sudo kill –s QUIT

    i.e. You send a QUIT signal to the process as root. This generates a thread dump file (in the case of the B2B server+IBM Java 1.3 VM, file of the type “javacore28976.1025667916.txt” are put in the B2B server directory).


    Sonam Chauhan


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB