Browse Source

修改数据源minIdle、testOnBorrow、removeAbandonedTimeout等配置

sunyj 9 years ago
parent
commit
a85a99f63c

+ 5 - 5
src/main/resources/jdbc/B2B.dev.json

@@ -4,21 +4,21 @@
 	"username":"uuplatformdemo",
 	"password":"selectuuplatform",
 	"initialSize":3,
-	"minIdle":3,
+	"minIdle":0,
 	"maxActive":20,
 	"maxWait":60000,
 	"timeBetweenEvictionRunsMillis":60000,
 	"minEvictableIdleTimeMillis":300000,
 	"validationQuery":"SELECT 1 FROM DUAL",
 	"testWhileIdle":true,
-	"testOnBorrow":false,
+	"testOnBorrow":true,
 	"testOnReturn":false,
 	"removeAbandoned":true,
-	"removeAbandonedTimeout":1800,
+	"removeAbandonedTimeout":120,
 	"logAbandoned":true,
+	"timeBetweenLogStatsMillis":60000,
 	"poolPreparedStatements":true,
 	"maxPoolPreparedStatementPerConnectionSize":20,
 	"filters":"stat,log4j",
-	"connectionProperties":"druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000",
-	"useGlobalDataSourceStat":true
+	"connectionProperties":"druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000"
 }

+ 5 - 5
src/main/resources/jdbc/B2B.prod.json

@@ -4,21 +4,21 @@
 	"username":"platform$b2b",
 	"password":"select*fromuu",
 	"initialSize":3,
-	"minIdle":3,
+	"minIdle":0,
 	"maxActive":20,
 	"maxWait":60000,
 	"timeBetweenEvictionRunsMillis":60000,
 	"minEvictableIdleTimeMillis":300000,
 	"validationQuery":"SELECT 1 FROM DUAL",
 	"testWhileIdle":true,
-	"testOnBorrow":false,
+	"testOnBorrow":true,
 	"testOnReturn":false,
 	"removeAbandoned":true,
-	"removeAbandonedTimeout":1800,
+	"removeAbandonedTimeout":120,
 	"logAbandoned":true,
+	"timeBetweenLogStatsMillis":60000,
 	"poolPreparedStatements":true,
 	"maxPoolPreparedStatementPerConnectionSize":20,
 	"filters":"stat,log4j",
-	"connectionProperties":"druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000",
-	"useGlobalDataSourceStat":true
+	"connectionProperties":"druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000"
 }

+ 5 - 5
src/main/resources/jdbc/B2B.test.json

@@ -4,21 +4,21 @@
 	"username":"uuplatformdemo",
 	"password":"selectuuplatform",
 	"initialSize":3,
-	"minIdle":3,
+	"minIdle":0,
 	"maxActive":20,
 	"maxWait":60000,
 	"timeBetweenEvictionRunsMillis":60000,
 	"minEvictableIdleTimeMillis":300000,
 	"validationQuery":"SELECT 1 FROM DUAL",
 	"testWhileIdle":true,
-	"testOnBorrow":false,
+	"testOnBorrow":true,
 	"testOnReturn":false,
 	"removeAbandoned":true,
-	"removeAbandonedTimeout":1800,
+	"removeAbandonedTimeout":120,
 	"logAbandoned":true,
+	"timeBetweenLogStatsMillis":60000,
 	"poolPreparedStatements":true,
 	"maxPoolPreparedStatementPerConnectionSize":20,
 	"filters":"stat,log4j",
-	"connectionProperties":"druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000",
-	"useGlobalDataSourceStat":true
+	"connectionProperties":"druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000"
 }

+ 5 - 5
src/main/resources/jdbc/B2C.dev.json

@@ -4,21 +4,21 @@
 	"username":"uuplatformdemo",
 	"password":"selectuuplatform",
 	"initialSize":3,
-	"minIdle":3,
+	"minIdle":0,
 	"maxActive":20,
 	"maxWait":60000,
 	"timeBetweenEvictionRunsMillis":60000,
 	"minEvictableIdleTimeMillis":300000,
 	"validationQuery":"SELECT 1 FROM DUAL",
 	"testWhileIdle":true,
-	"testOnBorrow":false,
+	"testOnBorrow":true,
 	"testOnReturn":false,
 	"removeAbandoned":true,
-	"removeAbandonedTimeout":1800,
+	"removeAbandonedTimeout":120,
 	"logAbandoned":true,
+	"timeBetweenLogStatsMillis":60000,
 	"poolPreparedStatements":true,
 	"maxPoolPreparedStatementPerConnectionSize":20,
 	"filters":"stat,log4j",
-	"connectionProperties":"druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000",
-	"useGlobalDataSourceStat":true
+	"connectionProperties":"druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000"
 }

+ 5 - 5
src/main/resources/jdbc/B2C.prod.json

@@ -4,21 +4,21 @@
 	"username":"platform$b2b",
 	"password":"select*fromuu",
 	"initialSize":3,
-	"minIdle":3,
+	"minIdle":0,
 	"maxActive":20,
 	"maxWait":60000,
 	"timeBetweenEvictionRunsMillis":60000,
 	"minEvictableIdleTimeMillis":300000,
 	"validationQuery":"SELECT 1 FROM DUAL",
 	"testWhileIdle":true,
-	"testOnBorrow":false,
+	"testOnBorrow":true,
 	"testOnReturn":false,
 	"removeAbandoned":true,
-	"removeAbandonedTimeout":1800,
+	"removeAbandonedTimeout":120,
 	"logAbandoned":true,
+	"timeBetweenLogStatsMillis":60000,
 	"poolPreparedStatements":true,
 	"maxPoolPreparedStatementPerConnectionSize":20,
 	"filters":"stat,log4j",
-	"connectionProperties":"druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000",
-	"useGlobalDataSourceStat":true
+	"connectionProperties":"druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000"
 }

+ 5 - 5
src/main/resources/jdbc/B2C.test.json

@@ -4,21 +4,21 @@
 	"username":"uuplatformdemo",
 	"password":"selectuuplatform",
 	"initialSize":3,
-	"minIdle":3,
+	"minIdle":0,
 	"maxActive":20,
 	"maxWait":60000,
 	"timeBetweenEvictionRunsMillis":60000,
 	"minEvictableIdleTimeMillis":300000,
 	"validationQuery":"SELECT 1 FROM DUAL",
 	"testWhileIdle":true,
-	"testOnBorrow":false,
+	"testOnBorrow":true,
 	"testOnReturn":false,
 	"removeAbandoned":true,
-	"removeAbandonedTimeout":1800,
+	"removeAbandonedTimeout":120,
 	"logAbandoned":true,
+	"timeBetweenLogStatsMillis":60000,
 	"poolPreparedStatements":true,
 	"maxPoolPreparedStatementPerConnectionSize":20,
 	"filters":"stat,log4j",
-	"connectionProperties":"druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000",
-	"useGlobalDataSourceStat":true
+	"connectionProperties":"druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000"
 }

+ 5 - 5
src/main/resources/jdbc/DATACENTER.json

@@ -4,21 +4,21 @@
 	"username":"DATACENTER",
 	"password":"select!#%*(",
 	"initialSize":3,
-	"minIdle":3,
+	"minIdle":0,
 	"maxActive":20,
 	"maxWait":60000,
 	"timeBetweenEvictionRunsMillis":60000,
 	"minEvictableIdleTimeMillis":300000,
 	"validationQuery":"SELECT 1 FROM DUAL",
 	"testWhileIdle":true,
-	"testOnBorrow":false,
+	"testOnBorrow":true,
 	"testOnReturn":false,
 	"removeAbandoned":true,
-	"removeAbandonedTimeout":1800,
+	"removeAbandonedTimeout":120,
 	"logAbandoned":true,
+	"timeBetweenLogStatsMillis":60000,
 	"poolPreparedStatements":true,
 	"maxPoolPreparedStatementPerConnectionSize":20,
 	"filters":"stat,log4j",
-	"connectionProperties":"druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000",
-	"useGlobalDataSourceStat":true
+	"connectionProperties":"druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000"
 }

+ 5 - 5
src/main/resources/jdbc/UAS.json

@@ -4,21 +4,21 @@
 	"username":"UAS",
 	"password":"select!#%*(",
 	"initialSize":3,
-	"minIdle":3,
+	"minIdle":0,
 	"maxActive":20,
 	"maxWait":60000,
 	"timeBetweenEvictionRunsMillis":60000,
 	"minEvictableIdleTimeMillis":300000,
 	"validationQuery":"SELECT 1 FROM DUAL",
 	"testWhileIdle":true,
-	"testOnBorrow":false,
+	"testOnBorrow":true,
 	"testOnReturn":false,
 	"removeAbandoned":true,
-	"removeAbandonedTimeout":1800,
+	"removeAbandonedTimeout":120,
 	"logAbandoned":true,
+	"timeBetweenLogStatsMillis":60000,
 	"poolPreparedStatements":true,
 	"maxPoolPreparedStatementPerConnectionSize":20,
 	"filters":"stat,log4j",
-	"connectionProperties":"druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000",
-	"useGlobalDataSourceStat":true
+	"connectionProperties":"druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000"
 }