1 Reply Latest reply on Mar 14, 2017 3:39 PM by mdtaylor

    Killing zombie process in EBS Windows

    Beauty_and_dBest

      Hi ALL,

       

      EBS R12.2.4

      OL6 and Win2012

       

       

      How do I kill EBS runaway or zombie processes in Windows 2012 Server?

       

      In linux, after I shutdown the apps tier using > adstpall.cmd apps/apps

       

      Then I kill all process owned by applmgr to be able to clear all runaways.

       

      ps -ef | grep "applmgr"  | awk '{ print "kill -9 " $2 }'>kill2.sh

      sh kill2.sh

       

       

      How do I do this in Windows? Or How to stop all services related to applmgr?

       

       

      Please help...

       

       

      Kind regards,

      jc

        • 1. Re: Killing zombie process in EBS Windows
          mdtaylor

          Hi jc,

           

          You have to type sh in order to kill processes via a script like that:

           

          E:\oracle\vis122>ps -W | grep FND

            1147156       0       0    1147156  ?              0 06:44:15 E:\oracle\vis122

          \fs2\EBSapps\appl\fnd\12.0.0\bin\FNDLIBR.exe

            1148648       0       0    1148648  ?              0 06:44:41 E:\oracle\vis122

          \fs2\EBSapps\appl\fnd\12.0.0\bin\FNDSM.exe

            1148676       0       0    1148676  ?              0 06:44:43 E:\oracle\vis122

          \fs2\EBSapps\appl\fnd\12.0.0\bin\FNDCRM.exe

            1148620       0       0    1148620  ?              0 06:44:43 E:\oracle\vis122

          \fs2\EBSapps\appl\fnd\12.0.0\bin\FNDLIBR.exe

            1148144       0       0    1148144  ?              0 06:44:44 E:\oracle\vis122

          \fs2\EBSapps\appl\fnd\12.0.0\bin\FNDLIBR.exe

            1148672       0       0    1148672  ?              0 06:44:44 E:\oracle\vis122

          \fs2\EBSapps\appl\fnd\12.0.0\bin\FNDLIBR.exe

            1147372       0       0    1147372  ?              0 06:44:44 E:\oracle\vis122

          \fs2\EBSapps\appl\fnd\12.0.0\bin\FNDLIBR.exe

            1148860       0       0    1148860  ?              0 06:44:44 E:\oracle\vis122

          \fs2\EBSapps\appl\fnd\12.0.0\bin\FNDLIBR.exe

            1145976       0       0    1145976  ?              0 06:44:44 E:\oracle\vis122

          \fs2\EBSapps\appl\fnd\12.0.0\bin\FNDLIBR.exe

            1148332       0       0    1148332  ?              0 06:44:45 E:\oracle\vis122

          \fs2\EBSapps\appl\fnd\12.0.0\bin\FNDLIBR.exe

            1148076       0       0    1148076  ?              0 06:44:45 E:\oracle\vis122

          \fs2\EBSapps\appl\fnd\12.0.0\bin\FNDLIBR.exe

            1148872       0       0    1148872  ?              0 06:44:45 E:\oracle\vis122

          \fs2\EBSapps\appl\fnd\12.0.0\bin\FNDLIBR.exe

            1149544       0       0    1149544  ?              0 06:44:45 E:\oracle\vis122

          \fs2\EBSapps\appl\fnd\12.0.0\bin\FNDLIBR.exe

           

          E:\oracle\vis122>ps -W | grep notepad

             991292       0       0     991292  ?              0   Mar  7 C:\Windows\Syste

          m32\notepad.exe

            1050784       0       0    1050784  ?              0   Mar  7 C:\Windows\Syste

          m32\notepad.exe

            1154588       0       0    1154588  ?              0 07:04:34 C:\Windows\Syste

          m32\notepad.exe

            1161192       0       0    1161192  ?              0 08:05:33 C:\Windows\Syste

          m32\notepad.exe

           

          E:\oracle\vis122>kill -f 991292

           

          E:\oracle\vis122>ps -W | grep notepad

            1050784       0       0    1050784  ?              0   Mar  7 C:\Windows\Syste

          m32\notepad.exe

            1154588       0       0    1154588  ?              0 07:04:34 C:\Windows\Syste

          m32\notepad.exe

            1161192       0       0    1161192  ?              0 08:05:33 C:\Windows\Syste

          m32\notepad.exe

           

          E:\oracle\vis122>

           

           

          ps -W | grep notepad.exe | awk '{print $1}' | while read line; do echo $line | xargs kill -f; done;

           

          http://stackoverflow.com/questions/10877652/how-to-kill-a-process-in-cygwin

           

          E:\oracle\vis122>ps -W | grep notepad

            1050784       0       0    1050784  ?              0   Mar  7 C:\Windows\Syste

          m32\notepad.exe

            1154588       0       0    1154588  ?              0 07:04:34 C:\Windows\Syste

          m32\notepad.exe

            1161192       0       0    1161192  ?              0 08:05:33 C:\Windows\Syste

          m32\notepad.exe

           

          E:\oracle\vis122>ps -W | grep notepad.exe | awk '{print $1}' | while read line;

          do echo $line | xargs kill -f; done;

          'awk' is not recognized as an internal or external command,

          operable program or batch file.

           

          E:\oracle\vis122>sh

          sh-4.4$ ps -W | grep notepad.exe | awk '{print $1}' | while read line; do echo

          $line | xargs kill -f; done;

          sh-4.4$ exit

          exit

           

          E:\oracle\vis122>ps -W | grep notepad

           

          E:\oracle\vis122>

           

          Regards,

          Michael