Appendix E.15 Monitoring the CJMSP Broker status

This subsection describes the procedure for starting CJMSP Broker in the monitoring mode due to debugging or error analysis.

By restarting CJMSP Broker with this procedure, the metrics information is output to the command prompt that executes CJMSP Broker.

To terminate this monitoring state, see Appendix E.7 Starting the Cosminexus JMS Provider services (for restarting a running system) to restart CJMSP Broker in the normal mode.

The following figure shows the procedure for monitoring the CJMSP Broker status.

Figure E-14 Procedure for monitoring the CJMSP Broker status

[Figure]

Organization of this subsection
(1) Process preconditions
(2) Information and supplementary explanation required for execution

(1) Process preconditions

(2) Information and supplementary explanation required for execution

The coding, such as (A1), corresponds to the coding in the figure.

(A1)
No specific value.
(A2)
host-name:port-number
The host name and port number on which CJMSP Broker is running.
If you omit the port number when CJMSP Broker is started, the default port number 7676 is used. In this case, you can omit the -b option.
(A3)
The CJMSP Broker Property File is stored in <VAR_HOME>/instances/instance-name/props/config.properties.
To start CJMSP Broker in the status monitoring mode, specify the following property.
For details, see 7.4 config.properties (CJMSP Broker Property File) in the uCosminexus Application Server Definition Reference Guide.
imq.metrics.interval
Specifies the time interval in seconds for the output of the metrics information to the log and console.
(A4)
instance-name
If omitted, cjmsbroker is used by default.
If you want to use multiple instances, make sure that the names do not overlap.
To overlap the names, specify the -name option, and assign any non-existent name.
An example display of the status monitoring mode is as follows:

Connections: 0 JVM Heap: 2932736​ bytes (731352 free) Threads: 0 (14-1010)
In: 0 msgs (0 bytes) 0 pkts (0 bytes)
Out: 0 msgs (0 bytes) 0 pkts (0 bytes)
Rate In: 0 msgs/sec (0 bytes/sec) 0 pkts/sec (0 bytes/sec)
Rate Out: 0 msgs/sec (0 bytes/sec) 0 pkts/sec (0 bytes/sec)

(A5)
No specific value.