diff --git a/common/src/main/java/me/lucko/luckperms/common/storage/methods/MySQLDatastore.java b/common/src/main/java/me/lucko/luckperms/common/storage/methods/MySQLDatastore.java index 5500d7fa..733f00ba 100644 --- a/common/src/main/java/me/lucko/luckperms/common/storage/methods/MySQLDatastore.java +++ b/common/src/main/java/me/lucko/luckperms/common/storage/methods/MySQLDatastore.java @@ -69,6 +69,7 @@ public class MySQLDatastore extends SQLDatastore { config.addDataSourceProperty("cachePrepStmts", true); config.addDataSourceProperty("prepStmtCacheSize", 250); config.addDataSourceProperty("prepStmtCacheSqlLimit", 2048); + config.addDataSourceProperty("leakDetectionThreshold", 5000); config.addDataSourceProperty("useServerPrepStmts", true); config.addDataSourceProperty("cacheCallableStmts", true); config.addDataSourceProperty("alwaysSendSetIsolation", false);