Change to minimum lifeTime

This commit is contained in:
Xephi59 2015-08-28 00:16:49 +02:00
parent e33ebb7379
commit 3bcaa3f12b

View File

@ -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");