解决绿盟漏洞扫描 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
相关推荐
gywl11 分钟前
Spring Boot 日志
java·spring boot·日志·外观模式
热心小张15 分钟前
Springboot单元测试
spring boot·单元测试·log4j
冰淇淋@32 分钟前
HTTP发送POST请求的两种方式
java·spring boot·http
李长渊哦3 小时前
学习文章:Spring Boot 中如何使用 `@Async` 实现异步处理
java·spring boot·学习
他不爱吃香菜4 小时前
Nginx正向代理HTTPS配置指南(仅供参考)
网络·网络协议·tcp/ip·nginx·http·https·信息与通信
李长渊哦4 小时前
学习文章:Spring Boot 中 Redis 配置与序列化管理
spring boot·redis·学习
呆萌很6 小时前
SpringBoot自定义静态资源的映射
spring boot
武昌库里写JAVA10 小时前
原生iOS集成react-native (react-native 0.65+)
vue.js·spring boot·毕业设计·layui·课程设计
m0_7482309411 小时前
Spring Boot 整合 Redis 步骤详解
spring boot·redis·bootstrap
学习嵌入式的小羊~12 小时前
远程监控项目描述以及总体框架
网络协议·http