Lower MySQL leak detection threshold (#2023)

This commit is contained in:
Antti Koponen 2021-07-23 16:50:02 +03:00 committed by GitHub
parent cdbe21fb6f
commit 5b6effb77b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -121,7 +121,7 @@ public class MySQLDB extends SQLDB {
hikariConfig.setMaximumPoolSize(1);
}
hikariConfig.setMaxLifetime(TimeUnit.MINUTES.toMillis(25L));
hikariConfig.setLeakDetectionThreshold(TimeUnit.MINUTES.toMillis(10L));
hikariConfig.setLeakDetectionThreshold(TimeUnit.SECONDS.toMillis(29L));
this.dataSource = new HikariDataSource(hikariConfig);
} catch (HikariPool.PoolInitializationException e) {