Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jfV5portal
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
管理员
jfV5portal
Commits
60e2e409
Commit
60e2e409
authored
Aug 06, 2018
by
周添尉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
application
parent
9fe36619
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
78 additions
and
30 deletions
+78
-30
applicationContext-business.xml
...ent/WEB-INF/conf/gaowj/bl/applicationContext-business.xml
+78
-30
No files found.
WebContent/WEB-INF/conf/gaowj/bl/applicationContext-business.xml
View file @
60e2e409
...
...
@@ -30,25 +30,41 @@
<!-- 配置初始化大小、最小、最大 -->
<property
name=
"initialSize"
value=
"1"
/>
<property
name=
"minIdle"
value=
"1"
/>
<property
name=
"maxActive"
value=
"
2
0"
/>
<property
name=
"maxActive"
value=
"
50
0"
/>
<!-- 配置获取连接等待超时的时间 -->
<property
name=
"maxWait"
value=
"60000"
/>
<!-- 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 -->
<property
name=
"timeBetweenEvictionRunsMillis"
value=
"60000"
/>
<property
name=
"timeBetweenEvictionRunsMillis"
value=
"60000"
/>
<!--
配置一个连接在池中最小生存的时间,单位是毫秒
-->
<property
name=
"
minEvictableIdleTimeMillis"
value=
"300000"
/>
<!--
超过时间限制是否回收,对于建立时间超过removeAbandonedTimeout的连接强制关闭
-->
<property
name=
"
removeAbandoned"
value=
"true"
/>
<!-- 超过时间限制多长,单位秒 -->
<property
name=
"removeAbandonedTimeout"
value=
"60"
/>
<!-- 配置一个连接在池中最小生存的时间,单位是毫秒:1分钟 -->
<property
name=
"minEvictableIdleTimeMillis"
value=
"60000"
/>
<!-- 配置一个连接在池中最长生存的时间,单位是毫秒:5分钟 -->
<property
name=
"maxEvictableIdleTimeMillis"
value=
"300000"
/>
<!-- 用来检测连接是否有效的sql,要求是一个查询语句 -->
<property
name=
"validationQuery"
value=
"SELECT 'x'"
/>
<property
name=
"testWhileIdle"
value=
"true"
/>
<property
name=
"testOnBorrow"
value=
"false"
/>
<property
name=
"testOnReturn"
value=
"false"
/>
<!-- 申请连接的时候检测 -->
<property
name=
"testWhileIdle"
value=
"true"
/>
<!-- 申请连接时执行validationQuery检测连接是否有效,配置为true会降低性能 -->
<property
name=
"testOnBorrow"
value=
"false"
/>
<!-- 归还连接时执行validationQuery检测连接是否有效,配置为true会降低性能 -->
<property
name=
"testOnReturn"
value=
"false"
/>
<!-- 连接池中的minIdle数量以内的连接,空闲时间超过minEvictableIdleTimeMillis,则会执行keepAlive操作 -->
<property
name=
"keepAlive"
value=
"true"
/>
<!-- 打开PSCache,并且指定每个连接上PSCache的大小 -->
<property
name=
"poolPreparedStatements"
value=
"true"
/>
<property
name=
"maxPoolPreparedStatementPerConnectionSize"
value=
"20"
/>
<!-- 是否缓存preparedStatement,也就是PSCache。PSCache对支持游标的数据库性能提升巨大,比如说oracle。在mysql下建议关闭 -->
<property
name=
"poolPreparedStatements"
value=
"false"
/>
<!-- 要启用PSCache,必须配置大于0,当大于0时,poolPreparedStatements自动触发修改为true -->
<property
name=
"maxPoolPreparedStatementPerConnectionSize"
value=
"0"
/>
<!-- 配置监控统计拦截的filters,去掉后监控界面sql无法统计 -->
<property
name=
"filters"
value=
"stat"
/>
...
...
@@ -65,25 +81,41 @@
<!-- 配置初始化大小、最小、最大 -->
<property
name=
"initialSize"
value=
"1"
/>
<property
name=
"minIdle"
value=
"1"
/>
<property
name=
"maxActive"
value=
"
2
0"
/>
<property
name=
"maxActive"
value=
"
50
0"
/>
<!-- 配置获取连接等待超时的时间 -->
<property
name=
"maxWait"
value=
"60000"
/>
<!-- 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 -->
<property
name=
"timeBetweenEvictionRunsMillis"
value=
"60000"
/>
<property
name=
"timeBetweenEvictionRunsMillis"
value=
"60000"
/>
<!-- 超过时间限制是否回收,对于建立时间超过removeAbandonedTimeout的连接强制关闭 -->
<property
name=
"removeAbandoned"
value=
"true"
/>
<!-- 超过时间限制多长,单位秒 -->
<property
name=
"removeAbandonedTimeout"
value=
"60"
/>
<!-- 配置一个连接在池中最小生存的时间,单位是毫秒 -->
<property
name=
"minEvictableIdleTimeMillis"
value=
"300000"
/>
<!-- 配置一个连接在池中最小生存的时间,单位是毫秒:1分钟 -->
<property
name=
"minEvictableIdleTimeMillis"
value=
"60000"
/>
<!-- 配置一个连接在池中最长生存的时间,单位是毫秒:5分钟 -->
<property
name=
"maxEvictableIdleTimeMillis"
value=
"300000"
/>
<!-- 用来检测连接是否有效的sql,要求是一个查询语句 -->
<property
name=
"validationQuery"
value=
"SELECT 'x'"
/>
<property
name=
"testWhileIdle"
value=
"true"
/>
<property
name=
"testOnBorrow"
value=
"false"
/>
<property
name=
"testOnReturn"
value=
"false"
/>
<!-- 申请连接的时候检测 -->
<property
name=
"testWhileIdle"
value=
"true"
/>
<!-- 申请连接时执行validationQuery检测连接是否有效,配置为true会降低性能 -->
<property
name=
"testOnBorrow"
value=
"false"
/>
<!-- 归还连接时执行validationQuery检测连接是否有效,配置为true会降低性能 -->
<property
name=
"testOnReturn"
value=
"false"
/>
<!-- 打开PSCache,并且指定每个连接上PSCache的大小 -->
<property
name=
"poolPreparedStatements"
value=
"true"
/>
<property
name=
"maxPoolPreparedStatementPerConnectionSize"
value=
"20"
/>
<!-- 连接池中的minIdle数量以内的连接,空闲时间超过minEvictableIdleTimeMillis,则会执行keepAlive操作 -->
<property
name=
"keepAlive"
value=
"true"
/>
<!-- 是否缓存preparedStatement,也就是PSCache。PSCache对支持游标的数据库性能提升巨大,比如说oracle。在mysql下建议关闭 -->
<property
name=
"poolPreparedStatements"
value=
"false"
/>
<!-- 要启用PSCache,必须配置大于0,当大于0时,poolPreparedStatements自动触发修改为true -->
<property
name=
"maxPoolPreparedStatementPerConnectionSize"
value=
"0"
/>
<!-- 配置监控统计拦截的filters,去掉后监控界面sql无法统计 -->
<property
name=
"filters"
value=
"stat"
/>
...
...
@@ -100,25 +132,41 @@
<!-- 配置初始化大小、最小、最大 -->
<property
name=
"initialSize"
value=
"1"
/>
<property
name=
"minIdle"
value=
"1"
/>
<property
name=
"maxActive"
value=
"
2
0"
/>
<property
name=
"maxActive"
value=
"
50
0"
/>
<!-- 配置获取连接等待超时的时间 -->
<property
name=
"maxWait"
value=
"60000"
/>
<!-- 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 -->
<property
name=
"timeBetweenEvictionRunsMillis"
value=
"60000"
/>
<property
name=
"timeBetweenEvictionRunsMillis"
value=
"60000"
/>
<!-- 超过时间限制是否回收,对于建立时间超过removeAbandonedTimeout的连接强制关闭 -->
<property
name=
"removeAbandoned"
value=
"true"
/>
<!--
配置一个连接在池中最小生存的时间,单位是毫
秒 -->
<property
name=
"
minEvictableIdleTimeMillis"
value=
"300000"
/>
<!--
超过时间限制多长,单位
秒 -->
<property
name=
"
removeAbandonedTimeout"
value=
"60"
/>
<!-- 配置一个连接在池中最小生存的时间,单位是毫秒:1分钟 -->
<property
name=
"minEvictableIdleTimeMillis"
value=
"60000"
/>
<!-- 配置一个连接在池中最长生存的时间,单位是毫秒:5分钟 -->
<property
name=
"maxEvictableIdleTimeMillis"
value=
"300000"
/>
<!-- 用来检测连接是否有效的sql,要求是一个查询语句 -->
<property
name=
"validationQuery"
value=
"SELECT 'x'"
/>
<property
name=
"testWhileIdle"
value=
"true"
/>
<property
name=
"testOnBorrow"
value=
"false"
/>
<property
name=
"testOnReturn"
value=
"false"
/>
<!-- 申请连接的时候检测 -->
<property
name=
"testWhileIdle"
value=
"true"
/>
<!-- 申请连接时执行validationQuery检测连接是否有效,配置为true会降低性能 -->
<property
name=
"testOnBorrow"
value=
"false"
/>
<!-- 归还连接时执行validationQuery检测连接是否有效,配置为true会降低性能 -->
<property
name=
"testOnReturn"
value=
"false"
/>
<!-- 连接池中的minIdle数量以内的连接,空闲时间超过minEvictableIdleTimeMillis,则会执行keepAlive操作 -->
<property
name=
"keepAlive"
value=
"true"
/>
<!-- 打开PSCache,并且指定每个连接上PSCache的大小 -->
<property
name=
"poolPreparedStatements"
value=
"true"
/>
<property
name=
"maxPoolPreparedStatementPerConnectionSize"
value=
"20"
/>
<!-- 是否缓存preparedStatement,也就是PSCache。PSCache对支持游标的数据库性能提升巨大,比如说oracle。在mysql下建议关闭 -->
<property
name=
"poolPreparedStatements"
value=
"false"
/>
<!-- 要启用PSCache,必须配置大于0,当大于0时,poolPreparedStatements自动触发修改为true -->
<property
name=
"maxPoolPreparedStatementPerConnectionSize"
value=
"0"
/>
<!-- 配置监控统计拦截的filters,去掉后监控界面sql无法统计 -->
<property
name=
"filters"
value=
"stat"
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment