Added more counters and a timer to trace the time to get the connection from pool.