我要评分
获取效率
正确性
完整性
易理解

Too Many Connections During the Sysbench Test

Symptom

MySQL is installed on the Kunpeng server. When sysbench 1.0.5 is used to perform a test, the following information is displayed indicating that there are too many connections:

FATAL: error 1040: Too many connections

Key Process and Cause Analysis

The number of database connections exceeds the configured maximum number of connections.

Conclusion and Solution

  1. Increase the maximum number of database connections. Run the following statement in the database:
    set global max_connections = 3600;
  2. Perform the sysbench test again.