zhiqiang.lv hai 1 mes
pai
achega
3fe863c8ff

+ 3 - 3
src/main/resources/application-test.yml

@@ -3,8 +3,8 @@ server:
   tomcat:
     accept-count: 1000
     max-connections: 10000
-    max-threads: 1000
-    min-spare-threads: 50
+    max-threads: 100
+    min-spare-threads: 20
     uri-encoding: UTF-8
     max-http-post-size: 100MB
     accesslog:
@@ -31,7 +31,7 @@ spring:
       # 空闲连接存活最大时间,默认600000(10分钟)
       idle-timeout: 60000
       # 连接池最大连接数,默认是10
-      maximum-pool-size: 100
+      maximum-pool-size: 20
       # 此属性控制从池返回的连接的默认自动提交行为,默认值:true
       auto-commit: true
       # 连接池名称

+ 4 - 4
src/main/resources/env/test/redisson.yml

@@ -13,12 +13,12 @@ singleServerConfig:
   address: "redis://204.13.154.148:6379"
   subscriptionConnectionMinimumIdleSize: 1
   subscriptionConnectionPoolSize: 50
-  connectionMinimumIdleSize: 50
-  connectionPoolSize: 300
+  connectionMinimumIdleSize: 20
+  connectionPoolSize: 64
   database: 2
   dnsMonitoringInterval: 5000
   pingConnectionInterval: 30000
-threads: 16
-nettyThreads: 16
+threads: 8
+nettyThreads: 8
 codec: !<org.redisson.codec.JsonJacksonCodec> {}
 transportMode: "NIO"