花生丶
2016-08-15 09:15
采纳率: 33.3%
浏览 7.2k

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

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条回答 默认 最新

  • 花生丶 2016-08-15 09:19

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

    评论
    解决 无用
    打赏 举报
  • dmlcq 2016-08-15 09:42

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

    评论
    解决 无用
    打赏 举报
  • 花生丶 2016-08-15 09:56

    一直用的好好的,都没动过,今天上班突然就这样了,公司其他同事的也没问题
    #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

    评论
    解决 无用
    打赏 举报

相关推荐 更多相似问题