'User has exceeded the max_user_connections resource' Error in MySQL Due to Limited Connection Pool
プラットフォームについて: Data Center のみ。 - This article only applies to Atlassian apps on the Data Center プラットフォーム。
この KB は Data Center バージョンの製品用に作成されています。Data Center 固有ではない機能の Data Center KB は、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。 Server* 製品のサポートは 2024 年 2 月 15 日に終了しました。Server 製品を実行している場合は、 アトラシアン Server サポート終了 のお知らせにアクセスして、移行オプションを確認してください。
*Fisheye および Crucible は除く
症状
The following error occurs in the logs:
Caused by: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: User 'jirauser' has exceeded the 'max_user_connections' resource (current value: 10)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1026)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3515)
原因
This problem is caused by a setting in MySQL limiting the number of connections.
ソリューション
Limit the size of the connection pool on your application server so it will not exceed max_user_connections. In Tomcat, this is done by setting the maxActive parameter to the <Resource> element:
<Context ...>
<Resource name="jdbc/jiradb" auth="Container"
type="javax.sql.DataSource" username="jirauser" password="dbpassword"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/javatest?autoReconnect=true"
maxActive="20" />
</Context>
更新日時: September 25, 2025
この内容はお役に立ちましたか?
さらにヘルプが必要ですか?
アトラシアン コミュニティをご利用ください。