Ban Management

Ban Management

193k Downloads

Connection Leak Detected? Not sure if issue with new BM or not

Tigatok opened this issue ยท 1 comments

commented

could be my dev server, but my configs haven't changed at all. Let me know if theres something I pooched.

[18:25:48 WARN]: 7515 [HikariPool-0 housekeeper] WARN me.confuser.banmanager.internal.hikari.pool.ProxyLeakTask [7/1920]

  • Connection leak detection triggered for com.mysql.jdbc.JDBC4Connection@6e307788, stack trace follows

[18:25:48 WARN]: java.lang.Exception: Apparent connection leak detected
[18:25:48 WARN]: at me.confuser.banmanager.internal.ormlite.jdbc.DataSourceConnectionSource.getReadWrite
Connection(DataSourceConnectionSource.java:120)
[18:25:48 WARN]: at me.confuser.banmanager.internal.ormlite.jdbc.DataSourceConnectionSource.getReadOnlyC
onnection(DataSourceConnectionSource.java:102)
[18:25:48 WARN]: at me.confuser.banmanager.internal.ormlite.stmt.StatementExecutor.buildIterator(Stateme
ntExecutor.java:243)
[18:25:48 WARN]: at me.confuser.banmanager.internal.ormlite.dao.BaseDaoImpl.createIterator(BaseDaoImpl.j
ava:964)
[18:25:48 WARN]: at me.confuser.banmanager.internal.ormlite.dao.BaseDaoImpl.iterator(BaseDaoImpl.java:53
3)
[18:25:48 WARN]: at me.confuser.banmanager.internal.ormlite.dao.BaseDaoImpl.iterator(BaseDaoImpl.java:52
8)
[18:25:48 WARN]: at me.confuser.banmanager.internal.ormlite.stmt.QueryBuilder.iterator(QueryBuilder.java
:389)
[18:25:48 WARN]: at me.confuser.banmanager.storage.PlayerStorage.setupAutoComplete(PlayerStorage.java:79
)
[18:25:48 WARN]: at me.confuser.banmanager.storage.PlayerStorage$1.run(PlayerStorage.java:50)

commented

The leak detection shows a warning if a connection is left open for a period of time. It's currently set to 2 seconds. I'll make it configurable as well as the option to disable it.