tomcat的jdbc连接池PoolExhaustedException
生活随笔
收集整理的這篇文章主要介紹了
tomcat的jdbc连接池PoolExhaustedException
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
異常
Could not get JDBC Connection; nested exception is org.apache.tomcat.jdbc.pool.PoolExhaustedException: [XNIO-2 task-6] Timeout: Pool empty. Unable to fetch a connection in 30 seconds, none available[size:100; busy:100; idle:0; lastwait:30000修改配置
spring:datasource:url: "jdbc:mysql://localhost:3306/spring_ddd"driverClassName: com.mysql.jdbc.Driverusername: "root"password: ""# Number of ms to wait before throwing an exception if no connection is available.tomcat:max-wait: 10000# Maximum number of active connections that can be allocated from this pool at the same time.max-active: 200validation-query: "SELECT 1"test-on-borrow: trueinitial-size: 1doc
Working with SQL databases
想獲取最新內(nèi)容,請關(guān)注微信公眾號
總結(jié)
以上是生活随笔為你收集整理的tomcat的jdbc连接池PoolExhaustedException的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: MySQL提示The server qu
- 下一篇: HDU2136 Largest prim