解决绿盟漏洞扫描 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
相关推荐
悟空码字16 小时前
Spring Boot 整合 MongoDB 最佳实践:CRUD、分页、事务、索引全覆盖
java·spring boot·后端
韭菜炒大葱1 天前
前端经典面试题:从 URL 输入到页面展示,中间经历了什么?
前端·http·面试
皮皮林5512 天前
拒绝写重复代码,试试这套开源的 SpringBoot 组件,效率翻倍~
java·spring boot
用户908324602735 天前
Spring AI 1.1.2 + Neo4j:用知识图谱增强 RAG 检索(上篇:图谱构建)
java·spring boot
用户8307196840826 天前
Spring Boot 集成 RabbitMQ :8 个最佳实践,杜绝消息丢失与队列阻塞
spring boot·后端·rabbitmq
Java水解6 天前
Spring Boot 视图层与模板引擎
spring boot·后端
Java水解6 天前
一文搞懂 Spring Boot 默认数据库连接池 HikariCP
spring boot·后端
洋洋技术笔记6 天前
Spring Boot Web MVC配置详解
spring boot·后端
初次攀爬者7 天前
Kafka 基础介绍
spring boot·kafka·消息队列
用户8307196840827 天前
spring ai alibaba + nacos +mcp 实现mcp服务负载均衡调用实战
spring boot·spring·mcp