mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-23 17:47:38 +01:00
Lower MySQL leak detection threshold (#2023)
This commit is contained in:
parent
cdbe21fb6f
commit
5b6effb77b
@ -121,7 +121,7 @@ public class MySQLDB extends SQLDB {
|
|||||||
hikariConfig.setMaximumPoolSize(1);
|
hikariConfig.setMaximumPoolSize(1);
|
||||||
}
|
}
|
||||||
hikariConfig.setMaxLifetime(TimeUnit.MINUTES.toMillis(25L));
|
hikariConfig.setMaxLifetime(TimeUnit.MINUTES.toMillis(25L));
|
||||||
hikariConfig.setLeakDetectionThreshold(TimeUnit.MINUTES.toMillis(10L));
|
hikariConfig.setLeakDetectionThreshold(TimeUnit.SECONDS.toMillis(29L));
|
||||||
|
|
||||||
this.dataSource = new HikariDataSource(hikariConfig);
|
this.dataSource = new HikariDataSource(hikariConfig);
|
||||||
} catch (HikariPool.PoolInitializationException e) {
|
} catch (HikariPool.PoolInitializationException e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user