tomcat运行错误信息,求解?

yy100520 发布于 2015/06/16 11:12
阅读 1K+
收藏 0
2015-06-15 12:28:48,527 [ WARN]   com.mchange.v2.async.ThreadPoolAsynchronousRunner-->com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@59ff3226 -- APPARENT DEADLOCK!!! Creating emergency threads for unassigned pending tasks!
2015-06-15 12:29:44,613 [ WARN]   com.mchange.v2.async.ThreadPoolAsynchronousRunner-->com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@59ff3226 -- APPARENT DEADLOCK!!! Complete Status: 
Managed Threads: 3
Active Threads: 2
Active Tasks: 
com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask@6d18b3b8 (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2)
com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask@70bf2cfc (com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0)
Pending Tasks: 
com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask@17228e38
com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask@5da70a65
com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask@19b9cec
com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask@f5b4ac7
com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask@7a7b9805
com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask@4839af15
com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask@4315b0be
com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask@4506ac5a
com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask@391d6c1d
com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask@3aa50136
com.mchange.v2.resourcepool.BasicResourcePool$1RefurbishCheckinResourceTask@26f29e4e
com.mchange.v2.resourcepool.BasicResourcePool$1RefurbishCheckinResourceTask@27726dc
com.mchange.v2.resourcepool.BasicResourcePool$1RefurbishCheckinResourceTask@5c9836c7
com.mchange.v2.resourcepool.BasicResourcePool$1RefurbishCheckinResourceTask@d34724f
com.mchange.v2.c3p0.stmt.GooGooStatementCache$1StmtAcquireTask@6e3ca74e
com.mchange.v2.resourcepool.BasicResourcePool$1RefurbishCheckinResourceTask@500c2a6c
com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask@5ddfe62c
com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask@4f0ec1c0
com.mchange.v2.resourcepool.BasicResourcePool$1RefurbishCheckinResourceTask@51d24ccc
com.mchange.v2.resourcepool.BasicResourcePool$1RefurbishCheckinResourceTask@45b00f0b
com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask@29abbeeb
com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask@4a834bac
com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask@71dd2f6b
com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask@70545433
com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask@306419e2
com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask@7bdf5d3f
com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask@56312a2
com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask@2b5c4c71
com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask@389ea4f4
com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask@375fac36
com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask@6a2329a0
Pool thread stack traces:
Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2,5,main]
com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:560)
Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0,5,main]
com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:560)
Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1,5,]




2015-06-15 15:29:41,739 [ERROR]   org.springframework.transaction.interceptor.TransactionInterceptor-->Application exception overridden by rollback error
java.lang.OutOfMemoryError: Java heap space
at oracle.sql.CharacterSet.UTFToJavaChar(CharacterSet.java:876)
at oracle.sql.CharacterSet.UTFToString(CharacterSet.java:805)
at oracle.jdbc.driver.DBConversion.CharBytesToString(DBConversion.java:580)
at oracle.jdbc.driver.DBConversion.CharBytesToString(DBConversion.java:542)
at oracle.jdbc.driver.T4CTTIdcb.receiveCommon(T4CTTIdcb.java:163)
at oracle.jdbc.driver.T4CTTIdcb.receive(T4CTTIdcb.java:115)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:705)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:216)
at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:966)
at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1062)
at oracle.jdbc.driver.T4CPreparedStatement.executeMaybeDescribe(T4CPreparedStatement.java:850)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1134)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3339)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3384)
at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeQuery(NewProxyPreparedStatement.java:76)
at org.hibernate.id.SequenceGenerator.generate(SequenceGenerator.java:98)
at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:122)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:210)
at org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:56)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:195)
at org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:50)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:93)
at org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:562)
at org.hibernate.impl.SessionImpl.save(SessionImpl.java:550)
at org.hibernate.impl.SessionImpl.save(SessionImpl.java:546)
at org.springframework.orm.hibernate3.HibernateTemplate$12.doInHibernate(HibernateTemplate.java:693)
at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:419)
at org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374)
at org.springframework.orm.hibernate3.HibernateTemplate.save(HibernateTemplate.java:690)
at cn.common.BaseDao.save(BaseDao.java:345)
at cn.com.dfzy.project.dao.AnalysisXinDaLuDao.saveTanaAnalysisXinDaLu(AnalysisXinDaLuDao.java:53)

at cn.com.dfzy.project.service.AnalysisXinDaLuService.saveTanaAnalysisXinDaLu(AnalysisXinDaLuService.java:50)



求问这个总是大概是由什么原因导致的,服务器内存64g,正常使用情况在20%左右,且这个错误是第一个出现,之前运行没有出现这种情况

还上面第一行的warn是什么意思,谢谢

连接配置:

加载中
0
开源中国首席公关
开源中国首席公关

可以肯定的是,跟你的虚拟内存没直接关系,是因为你的连接池出现频繁出现问题,导致资源没释放,从而让机器资源耗尽,最后出现内存溢出。

要解决就从你的C3P0连接池出现的问题入手

yy100520
yy100520
后台日志就报了这么多错误,而且连接池的参数配置都在问题里面贴出来了,麻烦能说的具体点么,谢谢
0
御污渔
御污渔
数据库配置的连接信息有问题
yy100520
yy100520
连接配置新加在问题中了,这样有啥 问题
0
淘淘我的小宝宝
淘淘我的小宝宝
赶紧看下内存,简单点用visualvm
0
旁友约不啦
旁友约不啦
不要用hibernate
0
淘淘我的小宝宝
淘淘我的小宝宝
tomcat的vm堆内存改大点试试吧
0
开源中国首席公关
开源中国首席公关

引用来自“彭大可”的评论

可以肯定的是,跟你的虚拟内存没直接关系,是因为你的连接池出现频繁出现问题,导致资源没释放,从而让机器资源耗尽,最后出现内存溢出。

要解决就从你的C3P0连接池出现的问题入手

回复 @yy100520 :具体是怎么造成这个问题,我也说不上来,毕竟对C3P0的配置不是很熟,不过,建议你可以多尝试一些配置试试
initialPoolSize 1
minPoolSize 1
maxPoolSize 300
maxIdleTime 60
acquireIncrement 5
idleConnectionTestPeriod 60
我的配置只有这些,你可以把你的配置先注释掉,试试我这个,我这边使用Mysql 没有出现你的问题。
0
zigzagroad
zigzagroad
C3P0的连接配置问题,有几个时间参数要配置为合理值。
0
徐迎龙
徐迎龙
这貌似是字段的问题,某个字段与bean里面的字段对应起来有问题,字符相关
返回顶部
顶部