Friday, October 28, 2016

How to kill all java process through a single command in websphere application server

[root@localhost bin]# ps -ef |grep java |awk '{print $1,$2,$3,$(NF-3),$NF}'

root 9578 1 /WebSphere/AppServer85/profiles/AppSrv01/config nodeagent
root 9582 1 /WebSphere/AppServer85/profiles/Dmgr01/config dmgr
root 9640 1 /WebSphere/AppServer85/profiles/AppSrv01/config server1
root 10217 3145 pts/0 java

[root@localhost bin]# kill -9 9578 9582 9640
[root@localhost bin]# kill -9 9578 9582 9640
bash: kill: (9578) - No such process
bash: kill: (9582) - No such process
bash: kill: (9640) - No such process
[root@localhost bin]# 

No comments:

Post a Comment