Docs Menu

Docs HomeMongoDB Cloud Manager

Fix CPU Usage Issues

On this page

  • Alert Conditions
  • Common Triggers
  • Fix the Immediate Problem
  • Implement a Long-Term Solution
  • Monitor Your Progress

System CPU alerts indicate that the CPU usage of the MongoDB process has reached a specified threshold. This threshold is specified when the alert is created.

You can configure the following alert conditions in the project-level alert settings page to trigger alerts.

System: CPU (Steal) %

Occurs when the percentage of time the CPU is in a state of "involuntary wait" exceeds the specified threshold. CPU steal percentage is the percentage by which the CPU usage exceeds the guaranteed baseline CPU credit accumulation rate.

Note

System: CPU (User) %
Occurs when the CPU usage of the MongoDB process, as normalized by the number of CPUs, exceeds the specified threshold.

Unoptimized queries might lead to System CPU alerts.

Consider adding one or more indexes to improve query performance. For details on calculating suggested indexes, see Calculate Suggested Indexes.

Consider scaling your cluster with additional servers to reduce the CPU usage percentage utilized by the current workload. For example, you could convert a replica set to a sharded cluster. To learn more about sharded clusters, see Sharding.

View the Normalized System CPU chart to monitor CPU usage of all processes on the node, scaled to a range of 0-100% by dividing by the number of CPU cores.

Monitor CPU usage to determine whether data is retrieved from disk instead of memory.

To learn more, see View Cluster Metrics.

←  Fix Query IssuesFix IOPS Issues →