Managed Threads: 3
Active Threads: 3
Active Tasks:
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@c22681 (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2)
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@6e12d5 (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0)
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@96613f (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1)
Pending Tasks:
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@ca81dd
com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask@113daba
com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask@7d0bbd
com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask@18dcc86
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@6e84ad
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@1c87a13
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@c6a26b
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.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1026)
com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32)
com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810)
com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)
看以前同事的写的功能模块,一点击就死了。。。不知道什么原因?
c3po配置:
<bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource" destroy-method="close">
<property name="driverClass" value="${jdbc.driverClassName}"/>
<property name="jdbcUrl" value="${jdbc.url}"/>
<property name="user" value="${jdbc.username}"/>
<property name="password" value="${jdbc.password}"/>
<property name="minPoolSize" value="10"/>
<property name="maxPoolSize" value="20"/>
<property name="initialPoolSize" value="10"/>
<property name="maxIdleTime" value="30"/>
<property name="maxStatements" value="0"/>
<property name="idleConnectionTestPeriod" value="60"/>
</bean>
分享到:
相关推荐
11:01:33,545 DEBUG ThreadPoolAsynchronousRunner:730 - com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@5b28c08e -- Running DeadlockDetector[Exiting. No pending tasks.] 11:01:43,558 ...
META-INF/MANIFEST.MF ...com.mchange.v2.Debug.class com.mchange.v2.c3p0.AbstractConnectionCustomizer.class com.mchange.v2.c3p0.AbstractConnectionTester.class com.mchange.v2.c3p0.C3P0ProxyConnection.class ...
com.mchange.v2.c3p0.jdbc.DataSourceClass = com.mchange.v2.c3p0.ComboPooledDataSource driverClass=com.mysql.jdbc.Driver jdbcUrl=jdbc:mysql://localhost:3306/mydatabase initialPoolSize=5 minPoolSize=5 ...
com.springsource.com.mchange.v2.c3p0-0.9.1.2.jar com.springsource.com.mchange.v2.c3p0-sources-0.9.1.2.jar
C3p0是一个开源的Java数据库连接池,全称为com.mchange.v2.c3p0,它由MChange Software公司开发。这个"C3p0-0.9.1.2.jar"是c3p0的一个特定版本,版本号为0.9.1.2,包含了该版本的所有功能和修复的已知问题。数据库...
<bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource"> <property name="driverClass" value="com.mysql.jdbc.Driver"/> <!-- 其他配置属性 --> ``` 在上面的配置中,我们指定了...
《c3p0-0.9.5.5.jar.zip:深入...com.mchange.v2.c3p0.jdbcUrl=jdbc:mysql://localhost:3306/mydb com.mchange.v2.c3p0.username=myuser com.mchange.v2.c3p0.password=mypassword com.mchange.v2.c3p0.minPoolSize=5 ...
2020-11-27 11:26:11|localhost-startStop-1|INFO |com.mchange.v2.log.MLog,80,|-> MLog clients using log4j logging. 2020-11-27 11:26:11|localhost-startStop-1|INFO |com.mchange.v2.c3p0.C3P0Registry,204,...
com.mchange.v2.c3p0.idle_test_period=3000 ``` 4. **C3P0的API**:C3P0提供了一套API,包括` ComboPooledDataSource `类,它是连接池的主要实现类,用于初始化和管理数据库连接。开发者可以通过它的方法获取和...
这个RAR压缩包包含了两个重要的JAR文件,分别是c3p0-0.9.5.2.jar和mchange-commons-java-0.2.11.jar。 1. **c3p0-0.9.5.2.jar**:这是C3P0的核心库文件,版本为0.9.5.2。C3P0是由Mchange公司开发的一个开源的数据库...
log4j:WARN No appenders could be found for logger (com.mchange.v2.log.MLog). log4j:WARN Please initialize the log4j system properly.
2. **com.mchange.v2.c3p0.jar**:这个包是C3P0的全名,包含了一些额外的依赖,如Mchange的其他组件,这些组件可能在某些特定功能或异常处理中使用。 3. **mysql-connector-java.jar** (或对应数据库驱动):C3P0...
import com.mchange.v2.c3p0.ComboPooledDataSource; public class C3P0Config { public static void main(String[] args) { ComboPooledDataSource cpds = new ComboPooledDataSource(); cpds.setDriverClass(...
com.springsource.com.mchange.v2.c3p0-0.9.1.2.jar com.springsource.org.aopalliance-1.0.0.jar com.springsource.org.apache.commons.logging-1.1.1.jar com.springsource.org.apache.log4j-1.2.15.jar ...
在Java开发中,数据库连接管理是一个关键环节,而C3P0和MChange(也称为Vibur DBCP)是两个常用的数据库连接池组件。它们各自有着不同的特性和使用场景,但有时候为了优化数据库访问性能,我们会将两者结合使用。在...
<bean id="dataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource"> <property name="driverClass" value="com.mysql.jdbc.Driver"/> <!-- 其他参数配置... --> ``` 理解并正确配置这些参数...
《mchange-commons-java-0.2.11.jar:深入了解Maven依赖与Java库的构建》 在Java开发中,我们经常会遇到各种各样的jar文件,它们是Java应用程序的基础,提供了丰富的功能和API。"mchange-commons-java-0.2.11.jar...
c3p0是一个开源的JDBC连接池,它的全称为com.mchange.v2.c3p0,由Mchange公司提供。这个库使得开发者能够更高效地管理和复用数据库连接,从而提高应用性能并降低系统资源消耗。"c3p0-0.9.5.2.jar+mchange-commons-...
c3p0连接mysql8.0.11需要外加mchange-commons-java-0.2.15.jar,maven的pom.xml 中配置了,但是项目中报找不到...比如放到我本地的对应目录:C:\Users\EDZ\.m2\repository\com\mchange\c3p0\0.9.5.4,就不会有此提示了
c3p0-0.9.5.2.jar mchange-commons-java-0.2.11.jar commons-logging-1.2.jar mysql-connector-java-5.1.43-bin.jar