今天突然项目跑不起来了,跑一半卡在那不动了。

AbstractPoolBackedDataSource.getPoolManager(462) | Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 5, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -> 1hge18f9i1390g1az7np3v|28f549de, debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> oracle.jdbc.driver.OracleDriver, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 1hge18f9i1390g1az7np3v|28f549de, idleConnectionTestPeriod -> 60, initialPoolSize -> 2, jdbcUrl -> jdbc:oracle:thin:@192.168.162.---:1521:orcl, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 7200, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 100, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 2, numHelperThreads -> 3, numThreadsAwaitingCheckoutDefaultUser -> 0, preferredTestQuery -> null, properties -> {user=******, password=******}, propertyCycle -> 0, testConnectionOnCheckin -> true, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false ]

3个回答

耽误半天了,求大神帮忙解决

貌似是你的数据局连接配置出了问题,看看连接地址,还有driver是不是配错了。

一直用的好好的,都没动过,今天上班突然就这样了,公司其他同事的也没问题
#MySQL
#jdbc.driverClassName=com.mysql.jdbc.Driver
#jdbc.url=jdbc:mysql://web329732.host22.chinajsp.net:3306/web329732?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true
#jdbc.username=web329732
#jdbc.password=b0d7c3q9

#Oracle ebase/ebase123 esemis/esoft123
jdbc.driverClassName=oracle.jdbc.driver.OracleDriver
#jdbc.url=jdbc:oracle:thin:@0336cd.019fac.2.c.cname123.net:17739:orcl
jdbc.url=jdbc:oracle:thin:@esoftServer:1521:orcl
jdbc.username=-----
jdbc.password=-----

#jdbc.url=jdbc:oracle:thin:@192.168.162.---:1521:orcl
#jdbc.username=-----
#jdbc.password=-----

Time to wait for an open connection before timing out

(in milliseconds)

cpool.checkoutTimeout=5000

cpool.initialPoolSize=5

Connection pool size

cpool.minPoolSize=2
cpool.maxPoolSize=100

How long to keep unused connections around(in seconds)

Note: MySQL times out idle connections after 8 hours(28,800 seconds)

so ensure this value is below MySQL idle timeout

cpool.maxIdleTime=7200

Acquiring new connections is slow, so eagerly retrieve extra connections

when current pool size is reached

#
cpool.acquireIncrement=5

cpool.autoCommitOnClose=true

#900 check null connect
cpool.testConnectionOnCheckin=true
cpool.idleConnectionTestPeriod=60
cpool.acquireRetryAttempts=30
cpool.breakAfterAcquireFailure=true
cpool.testConnectionOnCheckout=false

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐