利用C3P0连接sqlServer时大量连接未释放 50
我现在正在做的一个springMVC+Mybatis的项目中,在进行正式部署测试时,出现了sqlServer的活动连接数多达300个以上并有数据库锁死的情况,请问是不是我...
我现在正在做的一个springMVC+Mybatis 的项目中,在进行正式部署测试时,出现了sqlServer的活动连接数多达300个以上并有数据库锁死的情况,请问是不是我的配置有问题。下面是C3P0的配置:
c3p0.acquireIncrement=2
c3p0.acquireRetryDelay=1000
c3p0.acquireRetryAttempts=30
c3p0.autoCommitOnClose=false
c3p0.automaticTestTable=c3p0_TestTable
c3p0.breakAfterAcquireFailure=false
c3p0.checkoutTimeout=0
c3p0.idleConnectionTestPeriod=60
c3p0.initialPoolSize=2
c3p0.minPoolSize=2
c3p0.maxPoolSize=30
c3p0.maxIdleTime=60
c3p0.maxStatements=0
c3p0.maxStatementsPerConnection=0
c3p0.numHelperThreads=3
c3p0.testConnectionOnCheckout=false 展开
c3p0.acquireIncrement=2
c3p0.acquireRetryDelay=1000
c3p0.acquireRetryAttempts=30
c3p0.autoCommitOnClose=false
c3p0.automaticTestTable=c3p0_TestTable
c3p0.breakAfterAcquireFailure=false
c3p0.checkoutTimeout=0
c3p0.idleConnectionTestPeriod=60
c3p0.initialPoolSize=2
c3p0.minPoolSize=2
c3p0.maxPoolSize=30
c3p0.maxIdleTime=60
c3p0.maxStatements=0
c3p0.maxStatementsPerConnection=0
c3p0.numHelperThreads=3
c3p0.testConnectionOnCheckout=false 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询