From 7ad373ab2f4b147267208f1114cee5755f606639 Mon Sep 17 00:00:00 2001 From: Brett Wooldridge Date: Sat, 11 Jul 2015 10:11:27 +0900 Subject: [PATCH] Logging useful to troubleshoot slow pool cycling. --- .../src/main/java/com/zaxxer/hikari/pool/HikariPool.java | 1 + hikaricp/src/main/java/com/zaxxer/hikari/pool/HikariPool.java | 1 + 2 files changed, 2 insertions(+) diff --git a/hikaricp-java6/src/main/java/com/zaxxer/hikari/pool/HikariPool.java b/hikaricp-java6/src/main/java/com/zaxxer/hikari/pool/HikariPool.java index bd9fe91e..44570e3b 100644 --- a/hikaricp-java6/src/main/java/com/zaxxer/hikari/pool/HikariPool.java +++ b/hikaricp-java6/src/main/java/com/zaxxer/hikari/pool/HikariPool.java @@ -118,6 +118,7 @@ public final class HikariPool extends BaseHikariPool protected boolean isConnectionAlive(final Connection connection) { try { + LOGGER.debug("Performing alive check for connection {}", connection); final int timeoutSec = (int) TimeUnit.MILLISECONDS.toSeconds(validationTimeout); if (isUseJdbc4Validation) { diff --git a/hikaricp/src/main/java/com/zaxxer/hikari/pool/HikariPool.java b/hikaricp/src/main/java/com/zaxxer/hikari/pool/HikariPool.java index e5a72c67..caa6e6b9 100644 --- a/hikaricp/src/main/java/com/zaxxer/hikari/pool/HikariPool.java +++ b/hikaricp/src/main/java/com/zaxxer/hikari/pool/HikariPool.java @@ -107,6 +107,7 @@ public final class HikariPool extends BaseHikariPool protected boolean isConnectionAlive(final Connection connection) { try { + LOGGER.debug("Performing alive check for connection {}", connection); int timeoutSec = (int) TimeUnit.MILLISECONDS.toSeconds(validationTimeout); if (isUseJdbc4Validation) {