总计0 Hikari Pool,怎么可能?

时间:2017-10-27 14:58:29

标签: java connection connection-pooling hikaricp dbconnection

我有线程系统。太多(数千) 有时我们遇到了数据库瓶颈。 为了分析这个瓶颈,我打开了登录调试模式。我看到了这个:

Hikari装载......

springHikariCP - configuration:
allowPoolSuspension.............false
autoCommit......................true
catalog.........................none
connectionInitSql...............none
connectionTestQuery............."SELECT 1"
connectionTimeout...............30000
dataSource......................none
dataSourceClassName.............none
dataSourceJNDI..................none
dataSourceProperties............{user=blabla, url=jdbc:jtds:sqlserver:
driverClassName................."net.sourceforge.jtds.jdbc.Driver"
healthCheckProperties...........{}
healthCheckRegistry.............none
idleTimeout.....................600000
initializationFailFast..........true
initializationFailTimeout.......1
isolateInternalQueries..........false
jdbc4ConnectionTest.............false
jdbcUrl........................."jdbc:jtds:sqlserver://blabla"
leakDetectionThreshold..........0
maxLifetime.....................1800000
maximumPoolSize.................3000
metricRegistry..................none
metricsTrackerFactory...........none
minimumIdle.....................0
password........................<masked>
poolName........................"springHikariCP"
readOnly........................false
registerMbeans..................false
scheduledExecutor...............none
scheduledExecutorService........internal
threadFactory...................internal
transactionIsolation............default
username........................none
validationTimeout...............5000
springHikariCP - Starting...

并且在日志结束之前有0个统计数据...

  

池统计信息(总计= 0,活跃= 0,空闲= 0,等待= 0)

     

池统计信息(总计= 0,活跃= 0,空闲= 0,等待= 0)

     

池统计信息(总计= 0,活跃= 0,空闲= 0,等待= 0)

.....

怎么可能呢? db操作有太多更新,删除,选择,插入执行。什么意思是Total = 0连接? 难道我们没有正确设置Hikari配置吗?

0 个答案:

没有答案