Consultor Eletrônico



Kbase 19734: SonicMQ: Multiple Instances of JRE on Linux
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/9/2001
SUMMARY:

This document applies to all versions of SonicMQ.
When running SonicMQ on Linux, you might see multiple instances of the
Java Run/time Environment (JRE). Due the way Linux implements
Java threads, this is the expected behavior.

EXPLANATION:

In Linux, each Java thread is implemented as a process. SonicMQ
processes start multiple threads.
For example, the broker starts 40 to 50 threads. If you are using a
JRE which uses a native-threading model (as do Sun JRE 1.2.2 and IBM
JRE 1.1.8), each Java thread is implemented as a separate Linux
process. Therefore, when running a SonicMQ broker on Linux when using such a JRE, there is a corresponding process for each of those 40 to
50 threads. One of these processes is the parent process and the
remaining processes are child processes of that parent.

This can be seen using options of the 'ps' command. "ps -f" will show
each process' parent process ID (ppid), and "ps -dH | grep java |
more" will show the processes in a tree structure with the main
process at the highest level.

If it is necessary to kill the SonicMQ broker or Explorer, no special
action is required to kill the child processes; killing the parent
process also kills all its child processes.

References To Written Documentation:

SonicMQ 2000.1 Product Update Bulletin, Chapter 2, UNIX and Linux Installation.