Apache comoon-pool 使用总结

简介: Apache comoon-pool 使用总结

Apache comoon-pool

testWhileIdle:如果为true,表示有一个idle object evitor线程对idle object进行扫描,如果validate失败,此object会被从pool中drop掉;这一项只有在timeBetweenEvictionRunsMillis大于0时才有意义

timeBetweenEvictionRunsMillis

表示idle object evitor两次扫描之间要sleep的毫秒数;

minEvictableIdleTimeMillis (对所有连接都会有影响)

示一个对象至少停留在idle状态的最短时间,然后才能被idle object evitor扫描并驱逐;这一项只有在timeBetweenEvictionRunsMillis大于0时才有意义

softMinEvictableIdleTimeMillis (对>minidle的连接都会有影响)

连接空闲的最小时间,达到此值后空闲链接将会被移除,且保留“minIdle”个空闲连接数。默认为-1.

在minEvictableIdleTimeMillis基础上,且只有在timeBetweenEvictionRunsMillis大于0时才有意义;


目录
相关文章
|
6月前
|
Java 数据库连接 Apache
深入理解Apache Commons Pool2池化技术
深入理解Apache Commons Pool2池化技术
|
7月前
|
Python
【已解决】Caused by: org.apache.spark.SparkException: Python worker failed to connect back.
【已解决】Caused by: org.apache.spark.SparkException: Python worker failed to connect back.
322 0
|
存储 缓存 分布式计算
Spark-Core
Spark-Core
48 0
Spark-Core
|
XML Java 应用服务中间件
org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 18
org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 18
302 0
Cause: org.apache.ibatis.type.TypeException: Could not set parameters for mapping: ParameterMa
Cause: org.apache.ibatis.type.TypeException: Could not set parameters for mapping: ParameterMa
409 0
|
NoSQL Java 应用服务中间件
tomcat redis session共享报错 lassNotFoundException: org.apache.commons.pool.impl.GenericObjectPool$Confi
tomcat redis session共享报错 lassNotFoundException: org.apache.commons.pool.impl.GenericObjectPool$Confi
139 0
|
druid
报错: com.alibaba.druid.pool.DruidDataSource : abandon connection, owner thread
报错: com.alibaba.druid.pool.DruidDataSource : abandon connection, owner thread
1217 0
报错: com.alibaba.druid.pool.DruidDataSource : abandon connection, owner thread
|
SQL 机器学习/深度学习 存储
Spark Core
Spark Core
239 0
|
消息中间件 Java Kafka
报错:org.apache.kafka.common.errors.TimeoutException: Expiring 1 record(s) for mySecondTopic-2:
报错:org.apache.kafka.common.errors.TimeoutException: Expiring 1 record(s) for mySecondTopic-2:
2463 0
|
设计模式 数据库 容器
.NET Core 中对象池(Object Pool)的使用
.NET Core 中对象池(Object Pool)的使用
200 0