解决绿盟漏洞扫描 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 小时前
Java_Springboot技术框架讲解部分(二)
java·开发语言·spring boot·spring
Q_Q5110082851 小时前
python的小学课外综合管理系统
开发语言·spring boot·python·django·flask·node.js
林邵晨2 小时前
Spring Boot 自带的 JavaMail 集成
spring boot·javamail
白仑色2 小时前
Spring Boot + Thymeleaf + RESTful API 前后端整合完整示例
spring boot·后端·restful·thymeleaf·restfulapi
ta叫我小白3 小时前
Spring Boot 设置滚动日志logback
java·spring boot·spring·logback
Lo-Y-eH3 小时前
HTTP 四种常见方法
网络·网络协议·http
鲁子狄4 小时前
[笔记] 动态 SQL 查询技术解析:构建灵活高效的企业级数据访问层
java·spring boot·笔记·sql·mysql·mybatis
甜鲸鱼4 小时前
在Maven多模块项目中进行跨模块的SpringBoot单元测试
spring boot·单元测试·maven
chanalbert5 小时前
Nacos 技术研究文档(基于 Nacos 3)
spring boot·分布式·spring cloud
chanalbert5 小时前
Spring Cloud分布式配置中心:架构设计与技术实践
spring boot·spring·spring cloud