Help Center/
Relational Database Service/
User Guide/
Working with RDS for MySQL/
Problem Diagnosis and SQL Analysis/
Problem Diagnosis/
Managing Real-Time Sessions
Updated on 2024-10-14 GMT+08:00
Managing Real-Time Sessions
Scenarios
You can view current session statistics of your instance, identify abnormal sessions, and kill the sessions.
Setting Slow Session Threshold
- Log in to the management console.
- Click in the upper left corner and select a region.
- Click in the upper left corner of the page and choose Databases > Relational Database Service.
- On the Instances page, click the DB instance name.
- In the navigation pane, choose DBA Assistant > Real-Time Diagnosis.
- Click the Sessions tab to view current session statistics by user, access host, and database. To view long-running transaction sessions, contact customer service to apply for required permissions.
Figure 1 Sessions
- 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.
Figure 2 Setting a slow session threshold
- In the session list, select the abnormal session you want to end and click Kill Session to recover the database.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot