jfinal框架c0p3内存溢出问题

我数据库只要三个表,而且就两条测试数据,我就在Config中写了
C3p0Plugin cp = new C3p0Plugin(getProperty("jdbcUrl"),
getProperty("user"), getProperty("password"));
me.add(cp);
ActiveRecordPlugin arp = new ActiveRecordPlugin(cp);
me.add(arp);
arp.addMapping("registered", registeredEntity.class);
然后运行就报错。
这是报错信息,求大神帮帮忙,弄了好久了,我加内存也没用。
Pool thread stack traces:
Thread[C3P0PooledConnectionPoolManager-Helper Thread-#1,5,main]
java.net.SocketInputStream.socketRead0(Native Method)
java.net.SocketInputStream.socketRead(Unknown Source)
java.net.SocketInputStream.read(Unknown Source)
java.net.SocketInputStream.read(Unknown Source)
com.mysql.jdbc.util.ReadAheadInputStream.fill(ReadAheadInputStream.java:114)
com.mysql.jdbc.util.ReadAheadInputStream.readFromUnderlyingStreamIfNecessary(ReadAheadInputStream.java:161)
com.mysql.jdbc.util.ReadAheadInputStream.read(ReadAheadInputStream.java:189)
com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:3036)
com.mysql.jdbc.MysqlIO.readPacket(MysqlIO.java:624)
com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1110)
com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2395)
com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2428)
com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2213)
com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:797)
com.mysql.jdbc.JDBC4Connection.(JDBC4Connection.java:47)
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
java.lang.reflect.Constructor.newInstance(Unknown Source)
com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:389)
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:305)
com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:134)
com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182)
com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171)
com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:152)
com.mchange.v2.reso

    这是web.xml的
    <?xml version="1.0" encoding="UTF-8"?>


CallSystem

index.html
index.htm
index.jsp
default.html
default.htm
default.jsp


jfinal
com.jfinal.core.JFinalFilter

configClass
com.call.config.CallConfig



jfinal
/*

2个回答

配置文件要贴一下,配置了连接池的相关参数,还有确认一下数据库连接正确否。

weixin_41264933
谢老二 我是自学这个框架的,我把web的配置贴上去了,感谢
接近 3 年之前 回复

数据库连接应该没问题的,因为之前报过连接不上的错误,已经解决那个错误了。

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