开发者社区> 问答> 正文

关于JFinal的c3p0配置,是否只开放5个参数配置? : 配置报错 

@JFinal 你好,想跟你请教个问题:正式环境发现c3p0的死锁问题,查阅相关资料,想修改c3p0的设置,但是在Jfinal的c3p0插件中,只发现了maxPoolSize、minPoolSize、initialPoolSize、maxIdleTime、acquireIncrement这五个参数,是否不能配置其它参数?   -------附带c3p0的异常日志------- 12:13:31,948  WARN com.mchange.v2.async.ThreadPoolAsynchronousRunner.run():624 - com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@2804047 -- APPARENT DEADLOCK!!! Complete Status:     Managed Threads: 3     Active Threads: 3     Active Tasks:         com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@13235e29 (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0)         com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@76fadf8f (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1)         com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@506b624f (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2)     Pending Tasks:         com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@3a0359c8         com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@31fb7739         com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@745058d1         com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@46f73cff         com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@11c5adbf         com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@4911dfb6         com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask@34764b34         com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@42435dd4 Pool thread stack traces:     Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2,5,main]         com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:562)     Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0,5,main]         com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:562)     Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1,5,main]         com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:562)

展开
收起
kun坤 2020-06-04 13:17:53 439 0
1 条回答
写回答
取消 提交回答
  • 换上 druid plugin 即可, c3p0 太老了, 在 jfinal 官网首页下载 jfinal demo,里头有现成的使用 DruidPlugin 的实例

    2020-06-05 13:18:42
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
Serverless 开发实战--十分钟上线一个 Web 应用 立即下载
Java Spring Boot开发实战系列课程【第16讲】:Spring Boot 2.0 实战Apache Kafka百万级高并发消息中间件与原理解析 立即下载
低代码开发师(初级)实战教程 立即下载