OpenTP1 Version 7 Operation

[Contents][Index][Back][Next]

3.16.3 Acquiring real-time statistics

Real-time statistics are acquired in the shared memory for the real-time statistics service.

To acquire real-time statistics, you can specify the execution environment in the definition or use the API to specify a segment. This subsection describes how to specify the execution environment in the definition. For details about using the API to specify a segment, see the manual OpenTP1 Programming Guide.

The following figure illustrates acquisition of real-time statistics by specifying the execution environment in the definition.

Figure 3-43 Acquiring real-time statistics

[Figure]

  1. The real-time statistics service analyzes the definition file for the real-time statistics service and the definition file for the items to be acquired in real time.
  2. The real-time statistics service sets an area for storing real-time statistics in the shared memory for the service.
  3. Real-time statistics regarding the target UAP are acquired in the set storage area based on the definition.
Organization of this subsection
(1) Specifying a target
(2) Specifying the items to be acquired
(3) Specifying an acquisition interval
(4) Notes

(1) Specifying a target

You can specify a target from which you want the real-time statistics service to acquire statistics. To specify a target, use the rtsput definition command in the real-time statistics service definition. The maximum number of targets that can be specified in the rtsput definition command is the value specified in the rts_service_max operand in the real-time statistics service definition. For details about the targets for the acquisition of statistics, see E.5 Real-time statistics.

The following table shows the combinations of the values that can be specified for the options in the rtsput definition command and the targets for the acquisition of statistics.

Table 3-48 Values specified for the options in the rtsput definition command and acquisition targets

Value specified for the options in the rtsput definition command Acquisition target
-u sys Statistics of the entire system#1
-u srv -s server-name Statistics of the specified server#2
-u svc -s server-name -v service-name Statistics of the specified service
-u obj -o port-number -b IP-address Statistics for the specified port number and IP address

#1
Statistics can be acquired regardless of the number of targets specified in the rts_service_max operand.

#2
The following types of statistics are acquired for the specified server:
  • Statistics for the entire server
  • Statistics for each service provided by the server
  • Statistics for processing other than services (such as the main function)
Therefore, you will specify two more targets than the number of services provided by the server. If you specify a system server or SUP which does not run any services, the overall statistics for the server are acquired.

You do not need to start the server specified as the target for acquiring real-time statistics before you start the real-time statistics service. Real-time statistics can be acquired in the following cases as well:

(2) Specifying the items to be acquired

You can specify the types of real-time statistics to be acquired for each target. The maximum number of items that can be acquired for one target is the value specified in the rts_item_max operand in the real-time statistics service definition.

Use either of the following methods to specify the items to be acquired:

(3) Specifying an acquisition interval

Specify the interval for acquiring real-time statistics in the rts_trcput_interval operand in the real-time statistics service definition.

The following figure illustrates an acquisition interval.

Figure 3-44 Interval for acquiring real-time statistics

[Figure]

The shared memory for the real-time statistics service contains areas for storing real-time statistics.

  1. The real-time statistics service acquires statistics and edits them in the same storage area until the time specified in the rts_trcput_interval operand expires.
  2. When the specified length of time expires, the storage area is switched.
  3. When Y is specified in the rts_log_file operand in the real-time statistics service definition, the real-time statistics that have already been edited in the storage area are output to an RTS log file.
    For details about how to output statistics to an RTS log file, see 3.16.4(2) Outputting real-time statistics to an RTS log file.

You can use the rts_trcput_interval operand in the real-time statistics service definition to change the interval for acquiring statistics when the real-time statistics service is started normally. For details about when the specification in the definition is applied, see 3.16.2(6) Operation of the real-time statistics service.

(4) Notes