由于需要调用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>
分享到:
相关推荐
这个"Milliseconds-timer.zip"压缩包提供的源代码就是一个简单的C++毫秒计时器实现。下面将详细介绍相关知识点。 1. **C++时间库**: 在C++11及更高版本中,`<chrono>`库提供了处理时间点和持续时间的能力,包括...
### 序列号生成器实现解析 #### 一、概述 本文将深入解析一个Java实现的...这种类型的序列号生成器非常适合用于需要高并发、高性能以及高度分布化的场景,为解决大规模分布式系统中的唯一性问题提供了有力的支持。
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 The last packet successfully received from the server was 47,795,922 milliseconds ago. The last packet sent successfully to the server was...
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...
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”指的是在编程中计算时间间隔的一种方法,通常用于性能测试或时间戳相关的功能。在IT领域,我们经常会遇到需要精确测量程序执行时间的情况,以优化代码效率或者理解程序运行的实时...
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 ...
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...
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, 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 ...
window.setTimeout(expression,milliseconds); window.setInterval(expression,milliseconds); 其中,expression可以是用引号括起来的一段代码,也可以是一个函数名,到了指定的时间,系统便会自动调用该函数,当...
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...
1、写在开头 标题之前我想说一下Linux的mysql真的实在是太坑了。太坑了。总是会出现这样那样的你想不到的问题。崩溃了。首先来罗列一下我遇到过的一些问题吧。 1、大小写敏感 2、连接数超过系统最大连接数 ...
And it has many examples as to how to use the control (included.)<END><br>14 , djmeter.zip This is the source for a Progress Bar control. Also includes a helpful example.<END><br>15 , progress.zip...
All rights reserved worldwide. <br>Bus Hound is a powerful software bus analyzer for capturing I/O and protocol from devices. Features include: <br> Supports every version of IDE, SCSI, USB, ...
Sortable is a <s>minimalist</s> JavaScript library for reorderable drag-and-drop lists. Demo: http://rubaxa.github.io/Sortable/ ## Features * Supports touch devices and [modern]...
milliseconds. [[03 08:58:22,462 INFO ] org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:485) - FrameworkServlet 'hessian': initialization started [[03 08:58:22,...
TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(millisUntilFinished))); TextView countdownTextView = findViewById(R.id.countdown_textview); countdownTextView.setText(timeFormat); } @...