mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-08 11:40:58 +01:00
Change to minimum lifeTime
This commit is contained in:
parent
e33ebb7379
commit
3bcaa3f12b
@ -122,7 +122,7 @@ public class MySQL implements DataSource {
|
|||||||
config.addDataSourceProperty("prepStmtCacheSize", "250");
|
config.addDataSourceProperty("prepStmtCacheSize", "250");
|
||||||
config.addDataSourceProperty("prepStmtCacheSqlLimit", "2048");
|
config.addDataSourceProperty("prepStmtCacheSqlLimit", "2048");
|
||||||
config.addDataSourceProperty("autoReconnect", true);
|
config.addDataSourceProperty("autoReconnect", true);
|
||||||
config.setMaxLifetime(12000);
|
config.setMaxLifetime(30000);
|
||||||
config.setInitializationFailFast(false);
|
config.setInitializationFailFast(false);
|
||||||
ds = new HikariDataSource(config);
|
ds = new HikariDataSource(config);
|
||||||
ConsoleLogger.info("Connection pool ready");
|
ConsoleLogger.info("Connection pool ready");
|
||||||
|
Loading…
Reference in New Issue
Block a user