update 优化 修改配置文件对应配置

This commit is contained in:
疯狂的狮子Li
2026-03-24 18:12:34 +08:00
parent cf94cac451
commit 6ada9fe7d7
2 changed files with 13 additions and 18 deletions

View File

@@ -1,18 +1,13 @@
server:
# undertow 配置
undertow:
# jetty 配置
jetty:
# HTTP post内容的最大大小。当值为-1时默认值为大小是无限的
max-http-post-size: 1GB
# 以下的配置会影响buffer,这些buffer会用于服务器连接的IO操作,有点类似netty的池化内存管理
# 每块buffer的空间大小,越小的空间被利用越充分
buffer-size: 512
# 是否分配的直接内存
direct-buffers: true
max-http-form-post-size: -1
threads:
# 设置IO线程数, 它主要执行非阻塞的任务,它们会负责多个连接, 默认设置每个CPU核心一个线程
io: 8
# 阻塞任务线程池, 当执行类似servlet请求阻塞操作, undertow会从这个线程池中取得线程,它的值设置取决于系统的负载
worker: 256
# 最小线程数
min: 8
# 最大线程数
max: 256
dubbo:
application:
@@ -27,7 +22,7 @@ dubbo:
# 指定dubbo协议注册ip
# host: 192.168.0.100
# 开启虚拟线程
# threadpool: virtual
threadpool: virtual
# 消费者相关配置
consumer:
# 超时时间
@@ -50,7 +45,7 @@ spring:
threads:
# 开启虚拟线程 仅jdk21可用
virtual:
enabled: false
enabled: true
task:
execution:
# 从 springboot 3.5 开始 spring自带线程池