解决绿盟漏洞扫描 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
相关推荐
好好研究1 天前
SpringBoot整合SpringMVC
xml·java·spring boot·后端·mvc
千寻技术帮1 天前
10386_基于SpringBoot的外卖点餐管理系统
java·spring boot·vue·外卖点餐
曹轲恒1 天前
SpringBoot整合SpringMVC(末)
java·spring boot·后端
小马爱打代码1 天前
Spring Boot:邮件发送生产可落地方案
java·spring boot·后端
三水不滴1 天前
SpringBoot+Caffeine+Redis实现多级缓存
spring boot·redis·笔记·缓存
计算机毕设指导61 天前
基于微信小程序的智能停车场管理系统【源码文末联系】
java·spring boot·微信小程序·小程序·tomcat·maven·intellij-idea
indexsunny1 天前
互联网大厂Java面试实战:从Spring Boot到Kafka的技术与业务场景解析
java·spring boot·redis·面试·kafka·技术栈·microservices
独自破碎E1 天前
IDEA 提示“未配置SpringBoot配置注解处理器“的解决方案
java·spring boot·intellij-idea
坐怀不乱杯魂1 天前
Linux 网络 - HTTP -cookie session
网络·网络协议·http
Remember_9931 天前
Spring 核心原理深度解析:Bean 作用域、生命周期与 Spring Boot 自动配置
java·前端·spring boot·后端·spring·面试