原文来源:http://billyshao.iteye.com/blog/1831840
最近把项目迁移到weblogic下运行,结果一直报错,报错信息:
APPARENT DEADLOCK!!! Creating emergency threads for unassigned pending tasks!
在网上查了一下,大部分网友分析是c3p0造成的,我根据网友给出的参数修改了一下我的项目的参数,改好后重新启动,不再报错,稳定性需要观察。原文内容如下:
最近部在生产环境的应用,系统重启后,跑了一天后就挂掉了,每天都是如此,之前一直都是挺稳定的,看了日志报出的错误是:
[12-28 02:07:19,953] WARN [Timer-8] ThreadPoolAsynchronousRunner.run(624) | com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@4acfc57a -- APPARENT DEADLOCK!!! Complete Status:
接下来就是:
java.lang.OutOfMemoryError: GC overhead limit exceeded
这个问题,搞了好几天,后来发现是C3P0的问题,这里记录一下:
原c3p0参数如下:
<property name="maxPoolSize" value="10"/>
<property name="minPoolSize" value="3"/>
<property name="maxIdleTime" value="180" />
修改后c3p0的参数如下:
<property name="maxPoolSize" value="30" />
<property name="minPoolSize" value="10" />
<property name="maxIdleTime" value="1800" />
<property name="maxStatements" value="0" />
<property name="initialPoolSize" value="10" />
<property name="idleConnectionTestPeriod" value="1800" />
分享到:
相关推荐
网上传言C3P0是因为本身的BUG问题,然而今天我遇到这个问题并解决了,结果发现并不是。通过配置c3p0.maxStatements=0 这种方案只是治标不治本,或者干脆无效。我上传的解决方案肯定能解决这个问题的根本原因。出现...
SQL Server上的一个奇怪的Deadlock及其分析方法 Deadlock是SQL Server中的一种常见问题,它会导致事务无法继续执行,影响系统的性能和可靠性。了解Deadlock的产生原因和分析方法是非常重要的。本文将详细介绍SQL ...
当遇到无法访问MySQL数据库时,可能会出现如描述中的异常情况:“ThreadPoolAsynchronousRunner - com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@75d634ea -- APPARENT DEADLOCK!...
"power_flow.zip_apparent_流动_流动方程_能量方程_能量流动"这个标题暗示了我们正在探讨的是电力系统的功率流分析,这涉及到电能如何在电网中传输。"apparent flow"(视在流动)和"流动方程"可能指的是电路理论中的...
It’s becoming more and more apparent that security is a critical aspect of IT infrastructure. A data breach is a major security incident, usually carried out by just hacking a simple network line. ...
Direction information of the palmprint provides one of the most promising features for palmprint recognition. However, more existing direction-based methods only extract the surface direction features...
在Swift编程语言中,...如果你在开发过程中遇到UIAppearance的使用难题,Apparent可能是你寻找的解决方案。通过研究和使用Apparent的源代码,你还可以深入了解Swift的泛型、类型擦除以及如何优雅地扩展Apple的SDK。
It is inspired by the human brain's apparent deep (layered, hierarchical) architecture. A good overview of the theory of Deep Learning theory is [Learning Deep Architectures for AI]...
"Apparent Contour" 是一个开源项目,专注于处理三维(3D)模型的外观轮廓。在计算机图形学中,外观轮廓是指当一个3D对象被渲染时,由于法线(normal)与观察者视线(view direction)垂直而形成的边缘。这些轮廓在...
3.7 Embracing Chaos Theory: Generating Apparent Unpredictability through Deterministic Systems 288 3.8 Needs-Based AI 302 3.9 A Framework for Emotional Digital Actors 312 3.10 Scalable Dialog ...
3.7 Embracing Chaos Theory: Generating Apparent Unpredictability through Deterministic Systems 288 3.8 Needs-Based AI 302 3.9 A Framework for Emotional Digital Actors 312 3.10 Scalable Dialog ...
A Matlab toolbox for Deep Learning. Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data. It is inspired by the human brain's apparent deep ...
程序语言为Fortran,计算速度快,程序可改性也很强,欢迎学习电法的同行来下载!
神经网络中单离子通道问题的一篇很老的文章
Fixed a problem with a possible race condition between threads executing AcpiWalkNamespace and the AML interpreter. This condition was removed by modifying AcpiWalkNamespace to (by default) ignore all...