Commit 7acc3d19 by 284718418@qq.com

Tomcat 针对4核8G服务器调优

parent 159391ed
......@@ -7,12 +7,14 @@ server:
timeout: 2592000 # session会话过期时间
tomcat:
# 最大连接数,默认值是10000
max-connections: 1000
max-connections: 10000
# 最大工作线程数,默认200, 4核8g内存,线程数经验值800
max-threads: 500
max-threads: 800
# 等待队列长度,默认100
accept-count: 1000
max-http-post-size: 50MB
min-spare-threads: 100
spring:
servlet:
multipart:
......
......@@ -7,12 +7,13 @@ server:
timeout: 2592000 # session会话过期时间
tomcat:
# 最大连接数,默认值是10000
max-connections: 1000
max-connections: 10000
# 最大工作线程数,默认200, 4核8g内存,线程数经验值800
max-threads: 500
max-threads: 800
# 等待队列长度,默认100
accept-count: 1000
max-http-post-size: 50MB
min-spare-threads: 100
spring:
servlet:
multipart:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment