`
sanqian
  • 浏览: 30501 次
  • 性别: 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

    这个"Milliseconds-timer.zip"压缩包提供的源代码就是一个简单的C++毫秒计时器实现。下面将详细介绍相关知识点。 1. **C++时间库**: 在C++11及更高版本中,`&lt;chrono&gt;`库提供了处理时间点和持续时间的能力,包括...

    序列号生成器

    ### 序列号生成器实现解析 #### 一、概述 本文将深入解析一个Java实现的...这种类型的序列号生成器非常适合用于需要高并发、高性能以及高度分布化的场景,为解决大规模分布式系统中的唯一性问题提供了有力的支持。

    servlet2.4doc

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

    解决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...

    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 ...

    Count Time in Milliseconds

    标题“Count Time in Milliseconds”指的是在编程中计算时间间隔的一种方法,通常用于性能测试或时间戳相关的功能。在IT领域,我们经常会遇到需要精确测量程序执行时间的情况,以优化代码效率或者理解程序运行的实时...

    微软内部资料-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 ...

    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可以是用引号括起来的一段代码,也可以是一个函数名,到了指定的时间,系统便会自动调用该函数,当...

    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...

    Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: ….. this is incompatible with sq

    1、写在开头 标题之前我想说一下Linux的mysql真的实在是太坑了。太坑了。总是会出现这样那样的你想不到的问题。崩溃了。首先来罗列一下我遇到过的一些问题吧。 1、大小写敏感 2、连接数超过系统最大连接数 ...

    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...

    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]...

    第14章:网络编程(day20).zip

    milliseconds. [[03 08:58:22,462 INFO ] org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:485) - FrameworkServlet 'hessian': initialization started [[03 08:58:22,...

    仅使用TextView高仿京东淘宝各种APP活动倒计时样式

    TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(millisUntilFinished))); TextView countdownTextView = findViewById(R.id.countdown_textview); countdownTextView.setText(timeFormat); } @...

Global site tag (gtag.js) - Google Analytics