`
sanqian
  • 浏览: 29853 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
文章分类
社区版块
存档分类
最新评论

active for ... milliseconds and has been removed automaticaly 的解决办法

阅读更多
由于需要调用mysql store procedure来统计数据,比较费时,超过5分钟还没有结束的时候,抛出错误如下,意思是proxool连接池把超过309594 milliseconds的连接给关了:
引用

[WARN] [org.logicalcobwebs.proxool.HouseKeeper.sweep:149] #0001 was active for 309594 milliseconds and has been removed automaticaly. The Thread responsible was named 'http-8180-2', but the last SQL it performed is unknown because the trace property is not enabled.


查了proxool属性手册,解决方法就maximum-active-time参数设长一点就行(默认是5分钟,实际上是5分钟稍多一点,没那么精确):
http://proxool.sourceforge.net/properties.html

引用

maximum-active-time:

    If the housekeeper comes across a thread that has been active for longer than this then it will kill it. So make sure you set this to a number bigger than your slowest expected response! Default is 5 minutes.


我用了spring来集成proxool,配置如下:
<bean id="dataSourceProduct"
	   class="org.logicalcobwebs.proxool.ProxoolDataSource">
		<property name="driver">
			<value>${proxool.driver}</value>
		</property>
		<property name="driverUrl">
			<value>${proxool.url.product}</value>
		</property>
		<property name="user">
			<value>${proxool.username.product}</value>
		</property>
		<property name="password">
			<value>${proxool.password.product}</value>
		</property>
		<property name="alias">
			<value>${proxool.alias.product}</value>
		</property>
		<property name="maximumActiveTime">
			<value>${proxool.maximumActiveTime}</value>
		</property>
		<property name="simultaneousBuildThrottle">
			<value>${proxool.simultaneousBuildThrottle}</value>
		</property>
		<property name="prototypeCount">
			<value>${proxool.prototypeCount}</value>
		</property>
		<property name="maximumConnectionCount">
			<value>${proxool.maximumConnectionCount}</value>
		</property>
		<property name="minimumConnectionCount">
			<value>${proxool.minimumConnectionCount}</value>
		</property>
		<property name="houseKeepingTestSql">
			<value>${proxool.houseKeepingTestSql}</value>
		</property>
		<property name="trace">
			<value>${proxool.trace}</value>
		</property>
		<property name="verbose">
			<value>${proxool.verbose}</value>
		</property>
	</bean>
0
0
分享到:
评论

相关推荐

    Milliseconds-timer.zip_C++ Milliseconds

    写的C++,可以精确到毫秒的计时器,写好的源文件,可以自己添加上去就好了

    序列号生成器

    Refusing to generate id for %d milliseconds", lastTimestamp - timestamp)); } //如果上次生成时间和当前时间相同,在同一毫秒内 if (lastTimestamp == timestamp) { //sequence自增,因为sequence只有12bit...

    servlet2.4doc

    Notification that an existing attribute has been removed from the servlet context. attributeRemoved(ServletRequestAttributeEvent) - Method in interface javax.servlet.ServletRequestAttributeListener ...

    httpd-2.4.28

    It is now possible to specify KeepAliveTimeout in milliseconds. NameVirtualHost directive No longer needed and is now deprecated. Override Configuration The new AllowOverrideList directive allows more...

    [.Net控件] Infragistics NetAdvantage for Windows UI 2013 Vol.1

    This Data Chart is a next-generation charting control designed for handling a live data feed coming in with over tens of thousands of data point every several milliseconds. Touch Optimized Deliver ...

    微软内部资料-SQL性能优化3

    An isolation level determines the degree to which data is isolated for use by one process and guarded against interference from other processes. Prior to SQL Server 7.0, REPEATABLE READ and ...

    Efficient Variants of the ICPalgorithm

    Many variants of ICP have been proposed, affecting all phases of the algorithm from the selection and matching of points to the minimization strategy. We enumerate and classify many of these variants...

    STG (SNMP Traffic Grapher)

    Fixed bug when red Upper Rate line has incorrect position for high Max Rate numbers. Changes in version 1.4.2: Now runs on Win 98 and Millenium. Bugs fixed: 1. Corrected startup crash (when ...

    数位板压力测试

    This document describes a programming interface for using digitizing tablets and other advanced pointing de¬vices with Microsoft Windows Version 3.0 and above. The design presented here is based on ...

    Count Time in Milliseconds

    Count Time in Milliseconds

    LCTF软件备份VariSpec™ Liquid Crystal Tunable Filters

    This has been fixed in 1.35 so the error light remains lit, and an error code is returned. d) added range-check to VsDefinePalette() Previous revisions did not range-check the palette index number...

    Elasticsearch.Essentials.1784391018.pdf

    ElasticSearch, which is the world's most advanced search and analytics engine, brings the ability to make massive amounts of data usable in a matter of milliseconds. It not only gives you the power ...

    跟我学习javascript的定时器

    window.setTimeout(expression,milliseconds); window.setInterval(expression,milliseconds); 其中,expression可以是用引号括起来的一段代码,也可以是一个函数名,到了指定的时间,系统便会自动调用该函数,当...

    VB编程资源大全(英文源码 控制)

    And it has many examples as to how to use the control (included.)&lt;END&gt;&lt;br&gt;14 , djmeter.zip This is the source for a Progress Bar control. Also includes a helpful example.&lt;END&gt;&lt;br&gt;15 , progress.zip...

    电子秒表课程设计.doc

    Abstract Electronic stopwatch is the realization of a digital circuit technology,.It can realize the hour, minute, second timer.It does not have mechanical means and has a longer life, so it has been ...

    BUS Hound

    All rights reserved worldwide. &lt;br&gt;Bus Hound is a powerful software bus analyzer for capturing I/O and protocol from devices. Features include: &lt;br&gt; Supports every version of IDE, SCSI, USB, ...

    Sortable前端框架

    Sortable is a &lt;s&gt;minimalist&lt;/s&gt; JavaScript library for reorderable drag-and-drop lists. Demo: http://rubaxa.github.io/Sortable/ ## Features * Supports touch devices and [modern]...

    解决Cause com.mysql.jdbc.exceptions.jdbc4.CommunicationsException

    Cause com.mysql.jdbc.exceptions.jdbc4.CommunicationsException The last packet successfully received from the server was 47,795,922 milliseconds ago. The last packet sent successfully to the server was...

    Spectra带注册鸡

    Advanced Scaling and Calibration: adds independent channel calibration and scaling for left and right channels with separate views for each. Useful for applications requiring separate channel scaling ...

    Billenium Effects 4.1

    9. New 'Milliseconds' property in TRandomTransition 10. Asynchronous transitions are much less CPU hungry, so you can execute several at the same time 11. Several minor improvements 12. Windows Vista ...

Global site tag (gtag.js) - Google Analytics