This section describes how to configure a performance statistics task. After the performance statistics collection interval is set and an instance is bound to a performance statistics task, the system starts collecting the performance statistics.
A performance statistics task enables the system to periodically collect performance statistics for a service. In a performance statistics task, basic performance statistics functions are implemented, and performance statistics files can be generated.
Perform the following steps on the device:
The system view is displayed.
The performance management (PM) view is displayed.
The performance statistics function is enabled.
A performance statistics task is created, and the performance statistics task view is displayed.
The performance statistics collection interval is set.
An instance is bound to the performance statistics task.
After an instance is bound to a performance statistics task, the system collects the performance statistics about the instance and generates a statistics file.
Measurement is disabled for a statistics counter of the instance bound to the performance statistics task.
To view statistics counters of the instance bound to a performance statistics task, run the display pm measure-info instance-type instance-type-name command. To deactivate a specific statistics counter of the instance bound to a performance statistics task, run the measure disable instance-type instance-typemeasure measure-name command to disable the measurement for the statistics counter.
Run the record-file disable command to disable the generation of a performance statistics file.
Run this command when you do not want the system memory to be occupied by many performance statistics files.
If the performance statistics file generation function is left enabled, you can run the record-interval interval command to set the number of intervals at which performance statistics are collected.
After the command is run, the system generates performance statistics files every cycle x interval minutes and automatically saves the performance statistics in the files.
Run the file-format { text | xml } command to set the format for performance statistics files.
The configuration is committed.