解决绿盟漏洞扫描 gateway、nacos、springboot tomcat检测到目标主机可能存在缓慢的HTTP拒绝服务攻击问题

具体参数大小根据自己系统评估。

1、gateway

gateway采用的是netty容器,添加如下配置。

java 复制代码
server:
  netty:
    connection-timeout: 5000
spring:
  cloud:
    gateway:
      httpclient:
        connect-timeout: 5000
        pool:
          # 最大连接数
          max-connections: 200
          # 获取连接的超时时间
          acquire-timeout: 5000
          type: fixed

2、nacos

java 复制代码
server.tomcat.connection-timeout=5000
server.tomcat.max-connections=200
server.tomcat.max-threads=100

3、springboot tomcat

java 复制代码
server:
  tomcat:
    threads:
      max: 200
      min-spare: 30
    max-swallow-size: -1
    acceptCount: 100
    connection-timeout: 5000
    max-connections: 500
相关推荐
q***876024 分钟前
Spring Boot 整合 Keycloak
java·spring boot·后端
Billow_lamb25 分钟前
Spring Boot2.x.x全局拦截器
java·spring boot·后端
泉城老铁1 小时前
Springboot对接mqtt
java·spring boot·后端
阿拉斯攀登2 小时前
Spring Cloud Gateway 的内置路由过滤器使用
spring cloud·微服务·gateway
q***98522 小时前
VS Code 中如何运行Java SpringBoot的项目
java·开发语言·spring boot
allbs2 小时前
spring boot项目excel导出功能封装——3.图表导出
spring boot·后端·excel
帧栈2 小时前
开发避坑指南(72):HttpHeaders 的add()方法和set()方法有什么区别?
java·spring·http
wasp5202 小时前
Spring AI 代码分析(十)--Spring Boot集成
人工智能·spring boot·spring
unclecss2 小时前
把 Spring Boot 的启动时间从 3 秒打到 30 毫秒,内存砍掉 80%,让 Java 在 Serverless 时代横着走
java·jvm·spring boot·serverless·graalvm
Billow_lamb3 小时前
Spring Boot2.x.x 全局错误处理
java·spring boot·后端