10s SQL analysis

更新时间:
复制 MD 格式

The 10s SQL Analysis feature helps you pinpoint problematic SQL statements when a database instance triggers alerts for sudden spikes in CPU utilization, active sessions, or response time.

Prerequisites

The database instance must meet the following requirements:

  • The database instance is connected to DAS and its status is Normal Access. For more information, see Connect a database instance to DAS.

  • The database instance is one of the following types:

    • ApsaraDB RDS for MySQL

    • Self-managed MySQL

    • PolarDB for MySQL

    • PolarDB-X 2.0

How it works

DAS runs the show processlist command once per second for 10 seconds, then aggregates the result sets to identify the most frequently executed SQL statements and slow queries within that period.

Procedure

  1. Log on to the DAS console.

  2. In the navigation pane on the left, click Intelligent O&M Center > Instance Monitoring .

  3. Find the target instance and click the instance ID to open the instance details page.

  4. In the left-side navigation pane, click Instance Sessions.

  5. On the Instance Sessions page, click 10s SQL Analysis.