Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
7acc3d19
Commit
7acc3d19
authored
Mar 25, 2022
by
284718418@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tomcat 针对4核8G服务器调优
parent
159391ed
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
src/main/resources/application-pro.yml
+4
-2
src/main/resources/application-test.yml
+3
-2
No files found.
src/main/resources/application-pro.yml
View file @
7acc3d19
...
@@ -7,12 +7,14 @@ server:
...
@@ -7,12 +7,14 @@ server:
timeout
:
2592000
# session会话过期时间
timeout
:
2592000
# session会话过期时间
tomcat
:
tomcat
:
# 最大连接数,默认值是10000
# 最大连接数,默认值是10000
max-connections
:
1000
max-connections
:
1000
0
# 最大工作线程数,默认200, 4核8g内存,线程数经验值800
# 最大工作线程数,默认200, 4核8g内存,线程数经验值800
max-threads
:
5
00
max-threads
:
8
00
# 等待队列长度,默认100
# 等待队列长度,默认100
accept-count
:
1000
accept-count
:
1000
max-http-post-size
:
50MB
max-http-post-size
:
50MB
min-spare-threads
:
100
spring
:
spring
:
servlet
:
servlet
:
multipart
:
multipart
:
...
...
src/main/resources/application-test.yml
View file @
7acc3d19
...
@@ -7,12 +7,13 @@ server:
...
@@ -7,12 +7,13 @@ server:
timeout
:
2592000
# session会话过期时间
timeout
:
2592000
# session会话过期时间
tomcat
:
tomcat
:
# 最大连接数,默认值是10000
# 最大连接数,默认值是10000
max-connections
:
1000
max-connections
:
1000
0
# 最大工作线程数,默认200, 4核8g内存,线程数经验值800
# 最大工作线程数,默认200, 4核8g内存,线程数经验值800
max-threads
:
5
00
max-threads
:
8
00
# 等待队列长度,默认100
# 等待队列长度,默认100
accept-count
:
1000
accept-count
:
1000
max-http-post-size
:
50MB
max-http-post-size
:
50MB
min-spare-threads
:
100
spring
:
spring
:
servlet
:
servlet
:
multipart
:
multipart
:
...
...
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