Consultor Eletrônico



Kbase P102545: How to kill the AppServer processes on UNIX?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   9/9/2005
Status: Verified

GOAL:

How to kill the AppServer broker on UNIX?

GOAL:

How to kill the AppServer Agents on UNIX?

GOAL:

How to get a java core against the AppServer Broker ?

GOAL:

How to generate a thread dump against AppServer processes?

GOAL:

How to force generate a stack against the AppServer Agents?

GOAL:

When the asbman command stops responding (hangs) how to stop the AppServer processes?

GOAL:

When the asbman command stops responding (hangs) how to get a trace on the process?

FACT(s) (Environment):

UNIX

FIX:




While the "asbman -i [name] -kill" will get rid of the AppServer processes, it will not necessarily generate a stack trace for parallel investigations with the associated log files. The following suggests another method. Please note simply issuing a kill against the process is not necessarily the best way forward in all cases and needs to be taken under advisement.

Once a hang occurs, ie the asbman command stops responding, while undertaking the Steps below, be sure to keep track (by PID) which _proapsv processes were killed before killing the broker and which needed to be killed afterwards.

STEPS:
Where "asbroker1" is the name of the AppServer;
1a) 'kill -8' half the _proapsv processes (ie the AppServer Agents), by first finding the PID's of _proapsv processes:
$ ps -ef | grep asbroker1 | grep _proapsv
1b) Then kill the agents one by one as follows:
$ kill -8 PID
1c) Copy the "core" (the core file will be in working directory) to core.PID and then kill the next _proapsv process.

2a) 'kill -8' the broker process, by first finding the PID of the broker:
$ ps -ef | grep asbroker1 | grep AppServer
2b) Then kill the broker, where the resulting "javacore" will be in working directory:
$ kill -8 `ps -ef | grep asbroker1 | grep AppServer | awk '{print $2}'`
3) Check to see if remaining _proapsv processes die on their own.
4) 'kill -8' the remaining _proapsv processes .. all in one go this time:
$ kill -8 `ps -ef | grep asbroker1 | grep _proapsv | awk '{print $2}'`