tencent cloud

Feedback

Troubleshooting High CPU Utilization

Last updated: 2024-01-15 14:49:56

    Problem description

    The CPU monitoring metrics stay high on the System Monitoring tab on the Instance Details page of an instance in the TencentDB for MongoDB console.
    
    

    Troubleshooting

    1. Check whether the database operations are too frequent. Log in to the TencentDB for MongoDB console and click the ID of the target instance to enter the Instance Details page. Then, select the System Monitoring tab and view the Total Requests (QPS) metric of the instance, which indicates the total number of requests to the instance per second. If the business QPS is obviously high, determine whether you need to upgrade the instance configuration. For detailed directions, see Adjusting Instance Specification.
    2. Check whether there are slow logs on mongod. Log in to the TencentDB for MongoDB console and view the slow logs of the instance by using Query statistics.
    img
    
    Pay attention to keywords such as command, COLLSCAN, IXSCAN, keysExamined, and docsExamined.
    command indicates an operation request recorded in a slow log.
    COLLSCAN indicates that a full-collection scan is performed for the query.
    IXSCAN indicates that an index scan is performed. For descriptions of other fields, see Explain Results.
    keysExamined indicates the number of index entries scanned.
    docsExamined indicates the number of documents scanned. Larger keysExamined and docsExamined values indicate that no index is created or the created index is less distinctive. For more information on slow logs, see Log Messages. Analyze the specific cause and solve the problem based on the log message.

    References

    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support