Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Eladmin
Commits
3dfbee13
Commit
3dfbee13
authored
Jun 08, 2023
by
Zheng Jie
Browse files
代码优化,自定义线程池优化
parent
37b31150
Changes
1
Hide whitespace changes
Inline
Side-by-side
eladmin-system/src/main/resources/config/application.yml
View file @
3dfbee13
...
@@ -38,9 +38,9 @@ task:
...
@@ -38,9 +38,9 @@ task:
# 1、CPU密集型:线程数少一点,推荐:CPU内核数+1
# 1、CPU密集型:线程数少一点,推荐:CPU内核数+1
# 2、IO密集型:线程数多一些,推荐:一般CPU内核数 * 2
# 2、IO密集型:线程数多一些,推荐:一般CPU内核数 * 2
# 核心线程池大小
# 核心线程池大小
core-pool-size
:
5
core-pool-size
:
8
# 最大线程数
# 最大线程数
max-pool-size
:
1
0
max-pool-size
:
1
6
# 活跃时间
# 活跃时间
keep-alive-seconds
:
60
keep-alive-seconds
:
60
# 队列容量
# 队列容量
...
...
Write
Preview
Supports
Markdown
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