关于iProcess启动或者关闭不成功的小心得!

来源:互联网 发布:显示自己是阿里云的ip 编辑:程序博客网 时间:2024/05/01 19:21

    在维护BPM系统的时候经常发现有时候明明shutdown iProcess的进程,但是还是毫无作用,所有的状态都是running,但是下面的状态确实Current System Status : 'SHUTTING DOWN'

bash-3.00$ swsvrmgr status -v
Machine ID  Proc Name   Proc Inst  Status         Comment
----------------------------------------------------------------------
1           BG          1          RUNNING        BG process started
1           BG          2          RUNNING        BG process started
1           BG          3          RUNNING        BG process started
1           BG          4          RUNNING        BG process started
1           BG          5          RUNNING        BG process started
1           BG          6          RUNNING        BG process started
1           BG          7          RUNNING        BG process started
1           BG          8          RUNNING        BG process started
1           BGPREDICT   1          RUNNING        BG process started
1           DIRECTOR    1          RUNNING        DIRECTOR process started
1           DLMGR       1          RUNNING        DLMGR process started
1           IAPJMS      1          RUNNING        IAPJMS Process Started
1           RPCBG       1          RUNNING        RPCBG process started
1           RPC_TCP_LI  1          RUNNING        RPC listener process started
1           RPC_UDP_LI  1          RUNNING        RPC listener process started
1           SPO         1          RUNNING        SPO Server process started
1           SPO         2          RUNNING        SPO Server process started
1           SPO         3          NOT RUNNING
1           SPO         4          NOT RUNNING
1           SPO         5          NOT RUNNING
1           WIS         1          RUNNING        WIS process started
1           WIS         2          RUNNING        WIS process started
1           WIS         3          RUNNING        WIS process started
1           WIS         4          RUNNING        WIS process started
1           WISMBD      1          RUNNING        WISMBD process started
1           WISMBD      2          RUNNING        WISMBD process started
1           WQS         1          RUNNING        WQS process started


Current System Status : 'SHUTTING DOWN'

 

原先只知道的是swstop -p来关闭进程,然后发现原来swstop -f 0这个命令更能起到号的效果,运行这个命令之后,明显的吧所有都在running的进程给kill掉了

bash-3.00$ ./swstop -f 0
Attempting to stop 24 processes

Machine ID  Proc Name   Proc Inst  Status         Comment
----------------------------------------------------------------------
1           DIRECTOR    1          SHUTTING DOWN  Normal Shutdown
1           SPO         1          SHUTTING DOWN  Normal Shutdown
1           SPO         2          SHUTTING DOWN  Normal Shutdown
1           WISMBD      2          SHUTTING DOWN  WISMBD normal shutdown
1           WISMBD      1          SHUTTING DOWN  WISMBD normal shutdown
1           WIS         2          SHUTTING DOWN  WIS Normal shutdown
1           WIS         3          SHUTTING DOWN  WIS Normal shutdown
1           WIS         1          SHUTTING DOWN  WIS Normal shutdown
1           WIS         4          SHUTTING DOWN  WIS Normal shutdown
1           RPCBG       1          SHUTTING DOWN  Normal Shutdown
1           WQS         1          SHUTTING DOWN  WQS Normal shutdown
1           RPC_UDP_LI  1          SHUTTING DOWN  RPC server shutdown
1           RPC_TCP_LI  1          SHUTTING DOWN  RPC server shutdown
1           IAPJMS      1          SHUTTING DOWN  IAPJMS Process Shutdown
1           DLMGR       1          SHUTTING DOWN  main calling shutdown
1           BGPREDICT   1          SHUTTING DOWN  Normal Shutdown
1           BG          1          SHUTTING DOWN  Normal Shutdown
1           BG          5          SHUTTING DOWN  Normal Shutdown
1           BG          7          SHUTTING DOWN  Normal Shutdown
1           BG          8          SHUTTING DOWN  Normal Shutdown
1           BG          4          SHUTTING DOWN  Normal Shutdown
1           BG          2          SHUTTING DOWN  Normal Shutdown
1           BG          6          SHUTTING DOWN  Normal Shutdown
1           BG          3          SHUTTING DOWN  Normal Shutdown
Current System Status : 'SHUTTING DOWN'

 

这样子总算是把iProcess给重启了,当然如果启动过程中发现只有BG进程起来,而其他的进程都没有RUN那么可能就是TCP连接的问题,因为可能你启动过iProcess,但是现在把目录迁走,导致TCP连接还是连接原先的,所以导致一直没有关联上,所以没有启动iProcess成功

ps -ef | grep 'RPC'  然后kill掉进程,重新启动iProcess服务就可以.

这是最近几天的一点心得分享