解决绿盟漏洞扫描 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
相关推荐
Warren9835 分钟前
Java面试八股Spring篇(4500字)
java·开发语言·spring boot·后端·spring·面试
码农飞哥1 小时前
互联网大厂Java求职面试实战:Spring Boot到微服务全景解析
java·spring boot·微服务·maven·hibernate·技术栈·面试技巧
-SGlow-2 小时前
Linux相关概念和易错知识点(39)(URL、HTTP)
linux·运维·http
IT成长史2 小时前
deepseek梳理java高级开发工程师springboot面试题2
java·spring boot·后端
qq_266348732 小时前
springboot AOP中,通过解析SpEL 表达式动态获取参数值
java·spring boot·后端
bing_1583 小时前
MQTT 在Spring Boot 中的使用
java·spring boot·后端·mqtt
巴巴_羊3 小时前
AJAX 使用 和 HTTP
前端·http·ajax
码农飞哥9 小时前
互联网大厂Java求职面试实战:Spring Boot到微服务的技术问答解析
java·spring boot·缓存·面试·消息队列·技术栈·microservices
曼岛_9 小时前
[Java实战]Spring Boot + Netty 实现 TCP 长连接客户端及 RESTful 请求转发(二十六)
java·spring boot·tcp/ip
果冻kk9 小时前
【实战教程】从零实现DeepSeek AI多专家协作系统 - Spring Boot+React打造AI专家团队协作平台
人工智能·spring boot·react.js