Browse Source

配置修改

liuam 7 years ago
parent
commit
78999c20e1

+ 1 - 1
src/main/java/com/uas/ps/inquiry/util/ThreadUtils.java

@@ -223,7 +223,7 @@ public class ThreadUtils {
 		}
 
 		private Executor() {
-			this.threadPool = Executors.newFixedThreadPool(32);
+			this.threadPool = Executors.newFixedThreadPool(1000);
 		}
 
 		public Executor setTimeout(int timeout) {

+ 6 - 2
src/main/resources/config/application-cloud.properties

@@ -29,11 +29,15 @@ message.senderEnuu=10042875
 http.asyncConnectTimeout=30000
 http.asyncSocketTimeout=30000
 http.asyncConnectionRequestTimeout=10000
-http.asyncConnectNum=50
+http.asyncConnectNum=500
 http.asyncConnectPerRoute=10
 http.asyncIoThreadCount=500
 http.syncConnectTimeout=60000
 http.syncSocketTimeout=60000
 http.syncConnectionRequestTimeout=10000
 http.syncConnectPerRoute=10
-http.syncConnectNum=100
+http.syncConnectNum=500
+
+server.tomcat.max-connections=10000
+server.tomcat.max-threads=200
+server.tomcat.accept-count=10000

+ 5 - 2
src/main/resources/config/application-dev.properties

@@ -32,13 +32,16 @@ message.senderEnuu=10043516
 http.asyncConnectTimeout=30000
 http.asyncSocketTimeout=30000
 http.asyncConnectionRequestTimeout=10000
-http.asyncConnectNum=50
+http.asyncConnectNum=500
 http.asyncConnectPerRoute=10
 http.asyncIoThreadCount=500
 http.syncConnectTimeout=60000
 http.syncSocketTimeout=60000
 http.syncConnectionRequestTimeout=10000
 http.syncConnectPerRoute=10
-http.syncConnectNum=100
+http.syncConnectNum=500
 
+server.tomcat.max-connections=10000
+server.tomcat.max-threads=200
+server.tomcat.accept-count=10000
 

+ 6 - 2
src/main/resources/config/application-test.properties

@@ -29,11 +29,15 @@ message.senderEnuu=10043516
 http.asyncConnectTimeout=30000
 http.asyncSocketTimeout=30000
 http.asyncConnectionRequestTimeout=10000
-http.asyncConnectNum=50
+http.asyncConnectNum=500
 http.asyncConnectPerRoute=10
 http.asyncIoThreadCount=500
 http.syncConnectTimeout=60000
 http.syncSocketTimeout=60000
 http.syncConnectionRequestTimeout=10000
 http.syncConnectPerRoute=10
-http.syncConnectNum=100
+http.syncConnectNum=500
+
+server.tomcat.max-connections=10000
+server.tomcat.max-threads=200
+server.tomcat.accept-count=10000

+ 6 - 2
src/main/resources/config/application-txcloud.properties

@@ -30,11 +30,15 @@ message.senderEnuu=10042875
 http.asyncConnectTimeout=30000
 http.asyncSocketTimeout=30000
 http.asyncConnectionRequestTimeout=10000
-http.asyncConnectNum=50
+http.asyncConnectNum=500
 http.asyncConnectPerRoute=10
 http.asyncIoThreadCount=500
 http.syncConnectTimeout=60000
 http.syncSocketTimeout=60000
 http.syncConnectionRequestTimeout=10000
 http.syncConnectPerRoute=10
-http.syncConnectNum=100
+http.syncConnectNum=500
+
+server.tomcat.max-connections=10000
+server.tomcat.max-threads=200
+server.tomcat.accept-count=10000