Index: JdbcConnPoolStatsProvider.java =================================================================== --- JdbcConnPoolStatsProvider.java (revision 11565) +++ JdbcConnPoolStatsProvider.java (working copy) @@ -207,6 +207,7 @@ } //Decrement counter synchronized(numConnFree) { + long numConnFreeToSet = (numConnFree.getCurrent() - 1 >= 0) ? numConnFree.getCurrent() - 1 : 0; numConnFree.setCurrent(numConnFree.getCurrent() - 1); } }