You can view current session statistics of your instance, identify abnormal sessions, and kill the sessions.
in the upper left corner and select a region and a project.In the sessions statistics, you can view statistics on the slow sessions, active sessions, total sessions, long transaction sessions by user, access host, and database.
Click
next to the Slow Session Threshold field. In the displayed dialog box, set a slow session threshold and click OK. Sessions whose execution durations are greater than this threshold are automatically displayed.
In the session list, you can view session details. You can also select the abnormal session you want to end and click Kill Session to recover the database.
A maximum of 100 sessions can be killed at a time.
In the session list, click SQL Throttling and set the SQL type and keyword to match SQL statements. When the number of matched SQL statements exceeds the configured upper limit, the DB instance will refuse to execute the SQL statements, thus ensuring the instance stability.
For details, see Creating a SQL Throttling Rule.
To create a lock analysis task, log in to the DB instance on the Locks & Transactions page first. For details, see Managing Locks & Transactions. Then, click Create Lock Analysis. A lock analysis record is generated, which is used to check whether there are any sessions that hold locks.