Managing Real-Time Sessions

Updated on 2025-03-19 GMT+08:00

Scenarios

You can view current session statistics of your instance, identify abnormal sessions, and kill the sessions.

Setting Slow Session Threshold

  1. Log in to the management console.
  2. Click in the upper left corner of the page and choose Databases > Relational Database Service.
  3. On the Instances page, click the DB instance name.
  4. In the navigation pane, choose DBA Assistant > Real-Time Diagnosis.
  5. Click the Sessions tab to view current session statistics by user, access host, and database.
  6. Click Set Slow Session Threshold. In the displayed dialog box, configure Max. Execution Time for a Query (s) and click OK. Sessions whose execution time exceeds the threshold are automatically displayed.
  7. In the session list, select the abnormal session you want to end and click Kill Session to recover the database.
Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback