2024-01-25 14:25:33.194 ERROR [http-nio-8888-exec-59] [-] o.a.c.c.C.[.[.[.[dispatcherServlet][175] - Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is javax.persistence.PersistenceException: java.sql.SQLException: Unsuccessfully waited [1000] millis for a connection to be returned. No connections are free. You need to Increase the max connections of [100] or look for a connection pool leak using datasource.xxx.capturestacktrace=true] with root cause java.sql.SQLException: Unsuccessfully waited [1000] millis for a connection to be returned. No connections are free. You need to Increase the max connections of [100] or look for a connection pool leak using datasource.xxx.capturestacktrace=true at org.avaje.datasource.pool.PooledConnectionQueue._getPooledConnectionWaitLoop(PooledConnectionQueue.java:357) at org.avaje.datasource.pool.PooledConnectionQueue._getPooledConnection(PooledConnectionQueue.java:331) at org.avaje.datasource.pool.PooledConnectionQueue.getPooledConnection(PooledConnectionQueue.java:271) at org.avaje.datasource.pool.ConnectionPool.getPooledConnection(ConnectionPool.java:712) at org.avaje.datasource.pool.ConnectionPool.getConnection(ConnectionPool.java:700) at com.avaje.ebeaninternal.server.transaction.TransactionManager.createQueryTransaction(TransactionManager.java:302) at com.avaje.ebeaninternal.server.core.DefaultServer.createQueryTransaction(DefaultServer.java:2065) at com.avaje.ebeaninternal.server.core.OrmQueryRequest.initTransIfRequired(OrmQueryRequest.java:217) at com.avaje.ebeaninternal.server.core.DefaultServer.findList(DefaultServer.java:1370) at com.avaje.ebeaninternal.server.core.DefaultServer.findUnique(DefaultServer.java:1121)
mysql> SHOW VARIABLES LIKE 'max_connections';
+-----------------+-------+
| Variable_name | Value |
+-----------------+-------+
| max_connections | 5000 |
+-----------------+-------+
1 row in set (0.32 sec)
mysql> SHOW GLOBAL STATUS LIKE 'Max_used_connections';
+----------------------+-------+
| Variable_name | Value |
+----------------------+-------+
| Max_used_connections | 380 |
+----------------------+-------+
1 row in set (1.26 sec)