목차

HikariCP

주의점

Performance Tuning

leak-detection-threashold

WARN 924 --- [l-1 housekeeper] com.zaxxer.hikari.pool.ProxyLeakTask     : Connection leak detection triggered for com.mysql.jdbc.JDBC4Connection@ffd3737 on thread http-nio-80-exec-8, stack trace follows

java.lang.Exception: Apparent connection leak detected
    at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:128) ~[HikariCP-2.7.9.jar:na]
....

Stacktrace 를 잘 보면 leak 을 일으킨 호출 코드를 볼 수 있다.

max-lifetime

connectionInitSql

참고