ps and kill
Use the ps command to get information about what
server processes are running and to report process status. For example:
- At the UNIX prompt, type:
ps -efl.
- Search for the filename of the daemon process (for example, statisticsd). This process has the UID of the user who started the server software daemon process (usually root).
- Search for the filename of the client process, statisticsproc.exe.
There is one process for each end user currently connected to the
server software. The UID column displays the login ID of the
end user who owns the client process.
Use the
killcommand to kill a process. For example: - Log in as the user that started the daemon.
- At the UNIX prompt, type:
kill -9 pid
where pid it the process id of the process.
The server software daemon also automatically creates a file that
contains its process ID. Instead of manually finding the PID with
the ps command, you can use this file in conjunction
with the kill command directly to kill the daemon
process directly:
kill -9 `cat statisticsd.pid`
Note: If you want to use the administration application to monitor and kill processes, you must start the server software with the startup script provided by IBM® Corp.. See the topic Controlling Service Startup for more information.