When performance issues or operation exceptions occur on a database, you can troubleshoot the issues or exceptions based on the session information about the database. The session management feature allows you to view the statistics about sessions between an instance and clients in real time. The statistics include the client information, commands that are run, and connection duration. You can also terminate abnormal sessions based on your business requirements.
The database instance is connected to Data Autonomy Service (DAS) and is in the Normal Access state.
For ApsaraDB for Redis instances deployed in the cluster architecture, you cannot obtain the session information that is generated in direct connection mode.
Log on to the DAS console.
In the left-side navigation pane, click Instance Monitoring.
On the page that appears, find the database instance that you want to manage and click the instance ID. The instance details page appears.
In the left-side navigation pane, click Instance Sessions.
On the Instance Sessions tab, perform the following operations in the Instance Sessions and Session Statistics sections:
View summary information and session statistics by access source. The summary information includes the total number of clients and the number of active clients.
Export summary information and session statistics by access source.
In the Instance Sessions section, you can move the pointer over a parameter name in the corresponding column in the table to view the description of the parameter.
Related API operations
Queries the current sessions of an ApsaraDB for Redis instance.
Terminates all sessions of an ApsaraDB for Redis instance.