To collect and analyze performance data of services in the system, configure a performance statistics collection task and bind the task to instances. In the performance statistics collection task, you can configure the performance statistics collection cycle and parameters for statistics file generation.
If the performance statistics collection task is busy writing collected statistics into a file, you may need to wait for a while before performance management configurations are successfully delivered. In this situation, a message is displayed indicating that the performance statistics collection task is busy.
The system view is displayed.
The performance management (PM) view is displayed.
The performance statistics collection function is enabled.
By default, the performance statistics collection function is disabled.
A performance statistics collection task is created, and the performance statistics collection task view is displayed.
An instance is bound to the performance statistics collection task.
After an instance is bound to a performance statistics collection task, the system collects the performance statistics about the instance.
When all is specified, instance-type can only be ipfpm.
Measurement is disabled for a statistics counter of the instance bound to the performance statistics collection task.
By default, all statistics counters of the instance bound to a performance statistics task are measured.
To add one or more indicators that have been disabled to the performance statistics task again, run the measure enable [ measure-name ] or undo measure disable [ measure-name ] command to enable these indicators.
To view statistics counters of the instance bound to a performance statistics task, run the display pm measure-info [ instance-type instance-type ] command.
The performance statistics collection cycle is set.
The default cycle is 15 minutes.
The sampling interval for a performance statistics collection task is set.
By default, the sampling interval varies with the performance statistics collection cycle:
Run the record-file disable command to disable the generation of a performance statistics file.
By default, the system saves performance statistics in a performance statistics file automatic.
Run this command when you do not want the system memory to be occupied by many performance statistics files. After disabling the generation of a performance statistics file, you can still run the display pm statistics task-name data-index index [ instance-type instance-type [ measure measure-name | instance instance-name &<1-5> ] * ] command to view performance statistics.
If the performance statistics file generation function is left enabled, you can run the record-interval interval command to set the number of performance statistics collection cycles after which the system generates a statistics file.
After the command is executed, the system generates performance statistics files every cycle x interval minutes and automatically saves the performance statistics in the files. The system generates a maximum of four performance statistics files for each performance statistics collection task. If the system generates a new performance statistics file when four performance statistics files already exist, the latest performance statistics file will replace the earliest one.